Centre Pivot Tool.

Hi Guys,

In Maya I was wanting to centre a pivot point to an object. Then move the object to the centre of the world.  Unfortunately Maya does not have a one click button for this.

Fortunately for all of you, I did write a piece of code that now does exactly what I have described above.

So here it is. Have fun with this python code!

import maya.cmds as cmds;
centerObjects = cmds.ls(sl=True);
cmds.CenterPivot(centerObjects);
print centerObjects;cmds.move(0,0,0,rpr=True);
This entry was posted in Code, Uncategorized. Bookmark the permalink.

One Response to Centre Pivot Tool.

Leave a Reply

Your email address will not be published. Required fields are marked *