PDA

View Full Version : Selected FxOperators


Deracus
07-24-2008, 09:20 AM
Hi

got a problem:

I want to write a script, that works with the FxOperator-Nodes, that are selected in the FxTree.
That works, but only, if i select these nodes via the scene-explorer or some kind of explorer.

If i drag a rectangle around them to highlight them inside the FxTree View, the script doesnīt take them as selected, because the system also doesnīt do that.
Only if i double-Click on one of them, the become selected. But this way i canīt select multiple nodes from the FxTree.

Now the question:

Can i somehow filter, if they are highlighted in the FxTree? I mean...they become highlighted in the Tree, if you click on them and they can be deleted by rectangle-select them and simply pressing delete.
So there has to be a state for this condition...but i canīt find it.

Active is not true, because active means, if they are muted or not.
Selected is not true, as i mentioned above.

I canīt find any other Property, Parameter or nestedObject, that could help me in the SDK Guides.


The script, that i wrote works fine, if you pick the nodes from the explorer, but this is all but not comfortable for the user...

Any help would be appreciated

CiaranM
07-24-2008, 12:50 PM
You can see yourself, when you highlight a node in the FxTree it doesn't actually select the operator(s) in the scene explorer. You need to press the little edit "E" for it to become selected. And since you can't edit multiple nodes that way through the FxTree, I guess you can't get multiple selections that way. I guess the highlighting is nothing more than a visual cue for moving nodes?
To work around this, you might query all nodes in the current FxTree (find a selected fxOps parent), or all nodes of a certain type and create a list for the user to work with in your script's PPG. Pass the checked nodes to your function etc...

Deracus
07-24-2008, 02:06 PM
As you can read above, i know that and i am working around that.

Iīm selecting multiple nodes via the scene explorer.

And as i said before....you can delete multiple nodes by only rectangle-selecting them in the Tree and pressing delete, so it has to be a different state.

Sorry...please donīt get me wrong. I thank you for your answer, but it doesnīt really apply to the things, that i wrote before, because i already said, that i got my script to work and know how to work around.

I just want to get it in a more intuitive way....

CiaranM
07-24-2008, 02:20 PM
As you can read above, i know that and i am working around that.

Iīm selecting multiple nodes via the scene explorer.

And as i said before....you can delete multiple nodes by only rectangle-selecting them in the Tree and pressing delete, so it has to be a different state.

Sorry...please donīt get me wrong. I thank you for your answer, but it doesnīt really apply to the things, that i wrote before, because i already said, that i got my script to work and know how to work around.

I just want to get it in a more intuitive way....

I just wanted to confirm that I've struggled with this same problem, and that you can't grab a selection through the Fx UI. Sometime it's nice to know you're not alone with such problems...:innocent:

Deracus
07-24-2008, 02:23 PM
yes thats true...and again...i donīt wanted to offend you :)

I just want to shed some more light on this one...