Selecting an object to switch the tool


#1

Hello! I’ve began animating on a character rig, but wondered if there was a way to automatically switch between the move and rotate tools dependent on the animation control selected.

Can scripting achieve this?

Most of the controls are rotation dependent, while IK handles primarily use translation. This of course would be a very small refinement, and I’m not so lazy as to groan every time I reach for the W and E hotkeys. It would simply allow me to act more quickly and intuitively when keying the character into positions.


#2

Each Transform node has a “Show Manip Default” Attribute that can be set in the Display section in the Attribute Editor or a setAttr on the obj.showManipDefault which could be scripted. Can’t recall if that actually gets triggered appropriately. If you were super concerned or want to dig a bit deeper you could have a scriptJob listen to selections and query this attribute and set the tool to what is set from this attribute.
-Sean


#3

Thank you for the response. I’ll take a bash at this and look further into it.