Some free PyMEL code – makeNameUnique

In the spirit of sharing some handy scripts and tools, as well as pushing my vote toward PyMEL. I am going to try to post some handy code snippets to copy and paste for your own uses. This is nothing big or fancy, mostly just small functions that are good to have in a library.

This particular function is for renaming a node in Maya to be uniquely named if it isn’t already. You can use this in a loop to make sure you don’t have any duplicate node names. This is designed to use PyMEL objects. So enjoy and hopefully more of these type of snippets will be posted.

I made this code that works with PyMEL version 1.0.0 which comes with Maya 2011.

About the author: Scott

Leave a Reply

Your email address will not be published.Email address is required.