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)
>>             newLongName= cmds.ls(sl= True, uuid= True)[0]
>>             newNameSelection.insert(0, newLongName)
>>             #Decrease number input by User by 1
>>             startingNumberText= startingNumberText - 1
>>         #Select UUID (re-establish original selection)
>>         for each in newNameSelection:
>>             cmds.select(cmds.ls(each), add= True)
>>
>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/27aef0c2-1832-4a46-913e-82eda325b57b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to