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";
}

Posted in Animation, Uncategorized Tagged with: , , ,
2 comments on “Rotate Mode Hotkey for Maya
  1. ben malberg says:

    Hi David, I just wanted to say I like your work. That poet piece on your reel is hilarious. :D Congrats on the 11club, and I hope to see what you come up with next!

    Regards,
    Ben Malberg

1 Pings/Trackbacks for "Rotate Mode Hotkey for Maya"
  1. […] Also see how to create a Rotate Mode Hotkey here. […]

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About

David Talloy Thomas

Greetings! I'm David Thomas, a 3D animator from the UK. Now I live and work as an animator in Paris. I'll use this blog from time to time to as a sketchbook and talk about animation or what I'm up to. Check out my showreel if you've got a minute and drop me a comment or message if you want to chat!

iAnimate.net student

Tweets