PDA

View Full Version : Finding current FX Tree?


CiaranM
05-23-2008, 11:12 PM
Hi,
I was wondering if there was any simple way to return the tree(s) being viewed in open FX tree viewers?
It's simple enough if there any operators from that tree selected by using parent properties etc., but if there is another scene element selected, or nothing, then how does one find open trees?
Maybe view attributes, but the "FX tree" is not listed...?

Thanks.

Dennis Leong
05-29-2008, 12:57 PM
I don't think it's possible. I have never found a way to do it. You're best to have the user pick the FX tree if the script is interactive.

CiaranM
05-29-2008, 04:15 PM
I thought as much....
Thanks anyway.

mantom
05-29-2008, 05:02 PM
Hi,
I was wondering if there was any simple way to return the tree(s) being viewed in open FX tree viewers?
It's simple enough if there any operators from that tree selected by using parent properties etc., but if there is another scene element selected, or nothing, then how does one find open trees?
Maybe view attributes, but the "FX tree" is not listed...?

Thanks.


The FX Tree is kind of like the scene - everything is always there, it's a matter of what the camera in the FX Tree workspace shows you. Schematic view is the same way.

You might be able to check the X and Y coordinates of the FX Tree node to see if they fall in the FX Tree's camera frustrum, but I'm not sure how successful that would be as you'd need to be able to extract what the camera is looking at.

CiaranM
05-29-2008, 05:19 PM
The FX Tree is kind of like the scene - everything is always there, it's a matter of what the camera in the FX Tree workspace shows you. Schematic view is the same way.

You might be able to check the X and Y coordinates of the FX Tree node to see if they fall in the FX Tree's camera frustrum, but I'm not sure how successful that would be as you'd need to be able to extract what the camera is looking at.

That sounds like a good idea, unfortunately I can't find any method to return the FX Tree's camera. There doesn't appear to be any equivalent of the View Manager's 'activecamera' of 'focusedviewport' attributes.