Home Technical Talk

Maya issue with Naming

I have a Maya scripting problem for those willing to look into it for me!
I have 3 group nodes in my scene with relatively similarly named objects. When I call the list I created, it gives me names like "group|name" for the majority of all of the objects in the group node. I have one or two objects that don't use the "group|name" so they literally show up as "name". Unfortunately, I need all of these objects in my scene and the tool I am writing is "group|name" dependent.

Here is my code:

import pymel.core as pm

test = pm.ls(orderedSelection = 1)
for sel in test:
print(sel)

Replies

Sign In or Register to comment.