Create Null Above Object, Rename Null to Reflect Child Name – Python, Maya

Posted by:

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 = selection=True ) #create a list of object from your current selection

for selectionListObjects in selectionList:
nullName = cmds.rename(null, selectionListObjects + ‘Null’)
print newName



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.
  Related Posts
  • No related posts found.

Add a Comment