TOP

Rotate Mode Hotkey for Maya

rotate mode script maya

Rotate Mode Hotkey for Maya

A few months ago I posted this code snippet to automate switching between move axis settings in Maya. I also find myself switching between local and gimbal rotation modes a lot.. especially when working between IK/FK controllers. So here is some code to do that as well. It is much easier to work without opening the tools panel all the time, so I recommend saving it as a hotkey.

Again, paste this as plain text into a text editor before pasting it into Maya to avoid errors:

int $RotateAxis = `manipRotateContext -q -mode Rotate`;
if ($RotateAxis == 0 || $RotateAxis == 1) {
manipRotateContext -e -mode 2 Rotate;
print "Gimbal rotation mode has been set";
} else if ($RotateAxis == 2) {
manipRotateContext -e -mode 0 Rotate;
print "Local rotation mode has been set";
}

Feature film animator.

Comments (3)

Post a Comment

11 + eleven =