Hi,
this is driving me crazy.
I have a mesh that is named "Model__321".
How do I query that name?
When I do
`ls -sl`;
Maya also (inconveniently) returns the above group name to which this object is apart of:
Group__127|Model__321
I only want the Model__321 part. How is that possible?
Replies
To split the grouping information you can tokenize the bar character. The last index in the resulting array will be your object's name, however if you do in fact have multiple objects with the same name, you will get an "more than one object matches name" error when trying to select that object.
You should get such an error if you try to select an object with the `select` command, if it is in fact sharing the same name elsewhere.