PDA

View Full Version : Listing the sets that appear in the Outliner


th0rse
06-20-2009, 03:57 PM
Hey!

I'm trying to get my script to list the sets that I have in the scene. In fact, I donīt want to get all the sets that exist in the scene but those that show up in the Outliner when the option "DAG Objects Only" is ticked.

In the outliner those sets are shown like this:

http://www.davidmartinez.com/tmp/images/sets.jpg

I've tried to use the following commands:

ls -sets

and

listSets -as

Both of them return a lot of nodes that I donīt want to use. Is there any way to show only those that are showing up in the Outliner when the option "DAG Objects Only" is ticked ??

And what is the difference between these nodes and the ones that those commands are returning?


Thanks in advance

claydough
06-20-2009, 10:49 PM
ls by exact type "object sets" will git u almost there...
jes remove the "deformer sets" from that list




{
string $exactObjectSets[] = `ls -exactType "objectSet"`;
string $deformerObjectSets[] = `listSets -type 2`;
string $objectSetList[] = stringArrayRemove ( $deformerObjectSets, $exactObjectSets );
print $objectSetList;
}

th0rse
06-21-2009, 12:04 AM
Thanks a lot Roger! :thumbsup:

CGTalk Moderation
06-21-2009, 12:04 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.