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!
Flag Descriptions:
-p -prefix String Alphanumeric, cannot begin with number. Not required when INC is set to Alpha
-s -suffix String Alphanumeric, not required
-a -alpha Bool Sets the INC to name by Alpha. Default is False
-u -upper Bool Sets the INC to name by uppercase letters. Default value is False. Must use in
conjunction with the -alpha flag
-p -padding Int Sets the padding of the INC. Default value is -1 (auto-padding)
-st -start String Sets the start value of the INC. Numeric values will be converted to letters if Alpha
is set to True. Alpha values will NOT be converted to numbers. Uppercase/Lowercase is ignored.
-h -help String Displays the help information