Rename a list of objects using the selection list’s object names in the rename, add a suffix or prefix.
import maya.cmds as cmds
selectionList = cmds.ls( selection=True ) #create a list of object from your current selection
for selectionListObjects in selectionList:
null=cmds.group(empty=True)
nullName = cmds.rename(null, selectionListObjects + ‘Null’)
print newName
cmds.parent(selectionListObjects,nullName)
Continue Reading →
SEP
2017