View Full Version : Query selection from OutlinerEditor

11 November 2005, 11:56 PM
I have a UI element I have created that has a OutlinerEditor listing specific items in my scene. I want to be able to remove an item from the list with a button I have created. In other words, it would remove the selected item from the selectionConnection. How do I query what is selected in an OutlinerEditor and return that to a string variable.

Thanks so much,


11 November 2005, 08:36 PM
um, if something is selected in the outliner, it should be selected in general, if Im not mis-understanding you.

in that case its just

string $selected[] = `ls -sl`;


11 November 2005, 12:30 AM
you'll need to query the selectionConnection that's connected to your outliner editor using this:

selectionConnection -q -obj "selectionConnection"

you can query the selectionConnection of your outlinerEditor this way:

outlinerEditor -q -slc "outlinerEditor

the outlinerEditor will only select objects in the scene if it's set to - there are also other ways to use the outlinerEditor without forcing it to select objects.


CGTalk Moderation
11 November 2005, 12:30 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.