Renames a sequence of nodes using a defined prefix, increment variable(INC), and suffix.
The INC can consists or numbers, lowercase letters or uppercase letters.
Benefits:
Nodes will be named correctly if the name already exist later in the selection.
For example given the nodes ['spam3','spam1', 'spam4', 'spam2'] parented under the world
to be named spam[1-4] will be named correctly without additional increments. Normally
the nodes will be named ['spam5', 'spam6', 'spam3', 'spam4']
Selection: nurbsSphere1, nurbsSphere2, nurbsSphere3, nurbsSphere4, nurbsSphere5
Python: cmds.renameSequence(prefix='mel_', alpha=True, suffix='_junky')
MEL: renameSequence -prefix "mel_" -alpha true -suffix "_junky";
Will rename the nodes to:
mel_a_junky, mel_b_junky, mel_c_junky, mel_d_junky, mel_e_junky, mel_f_junky
Download for Python 2.5.1 ( Maya 2008/2009)
Here!