Skip to content

Instantly share code, notes, and snippets.

@chris-lesage
Created July 9, 2019 21:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-lesage/2e39a615414e3e9ff5b3b8dfb6928c21 to your computer and use it in GitHub Desktop.
Save chris-lesage/2e39a615414e3e9ff5b3b8dfb6928c21 to your computer and use it in GitHub Desktop.
Precisely scale Maya manipulators using addition instead of multiplication
'''
In Autodesk Maya, when you hit - and = to scale the manipulator gizmos, it *multiplies* the size.
So if it is small, it takes a long time to grow. And if it is big, and move in huge increments.
So I use addition and subtraction instead.
This gives you much more precise control.
Map the original ones to shift. _ and + to move in larger increments.
Just a tiny little tweak that helps me size it exactly how I want.
I use the radius of the rotation to measure pivot placement.
'''
# I map this to =
cmds.manipOptions(s=cmds.manipOptions(q=True, s=True)[0] + 0.3)
# I map this to -
cmds.manipOptions(s=cmds.manipOptions(q=True, s=True)[0] - 0.3)
# I also map the original IncreaseManipulatorSize to +
# And map DecreaseManipulatorSize to _
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment