import maya.cmds as cmd
specific_nodes = cmd.ls(et='objectSet')
That command would list all objectSets in the scene and it would do so very
quickly compared to the time it would take to do this in a scene with hundreds
of thousands of nodes: (psuedo-code)
specific_nodes = []
for node in cmd.ls():
if isinstance(node, objectSet):
specific_nodes.append(node)
So, the question. Is there a way to "tag" or otherwise specify that certain
nodes are different that would allow such a quick search to take place? Other
than creating a new nodetype via the api.
Best,
Marcus
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.