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


  Related Posts
  • No related posts found.

You must be logged in to post a comment.