View Full Version : Query selection from OutlinerEditor
russ_c 11-09-2005, 10: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,
Russell
|
|
swardson
11-11-2005, 07: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`;
-Brad
sunit
11-11-2005, 11:30 PM
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.
-sunit
CGTalk Moderation
11-11-2005, 11:30 PM
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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.