Another couple of options:
- the command cmds.rename returns the new name (which is often the name you
gave it, but not always)
- you can rename without changing the selection by using cmds.rename(oldName,
newName), and it will still all be selected when you're done.
On Wednesday, 9 January 20
Hi Jakob,
I never heard of the UUID (I'm still a beginner) but it works perfectly!
I've changed the lines from 48 to 64 to this and it now works exactly as I
wanted. Thank you so much!!
#Get UUID of renamed object (UUID to prevent error caused by long names not
>> matching)
>> newL
Hey Francesco,
Check out the objects UUID (it got introduced in maya 2016). That will stay
the same even though the object name changes, so you can use that instead
of the objects name.
*Jakob Kousholt - Freelance Creature Modeler and Concept Sculptor*
+1 (347) 327-1370
jako...@gmail.com
www.jak