Thoughts and tips for a daily coding life


How to move pivot point in Maya

June 12, 2015 Posted by Antanas No comments
Simple MEL script to move pivot point for selection to worlds 0,0,0 point.
string $sel[] = `ls -sl`;
string $mesh;

for ($mesh in $sel)
    move 0 0 0 ($mesh + ".scalePivot") ($mesh + ".rotatePivot");
Useful, when moving levels to game engine.
P.S. Doesn't work for groups. You have to select meshes inside group yourself.