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)
Share
15
SEP
2017
SEP
2017
About the Author:
I RUN this joint! And I am a digital artist. BFA from the University of Colorado with an emphasis in 3D Animation. I worked in medical animation for some time. I then narrowly escaped with an only partially crushed spirit. Since then I have been expanding my skill set, reaching out into custom coding, game and app development.