Skip to content

Tool activation commands like Softimage style (sticky/supra mode) for Autodesk Maya

License

Notifications You must be signed in to change notification settings

yamahigashi/MayaStickySupraTool

Repository files navigation

MayaStickySupraTool

Tool activation commands like Softimage style (sticky/supra mode) for Autodesk Maya

What is this?

Emulate softimage's Sticky mode and Supra mode accessing tools way. more info please see Softimage docs Using Shortcut Keys to Activate Tools section.

Limitation

supports maya2013 (or higher) Windows only

Install

before maya launch

  • Download Source code (zip) this repository and extract .zip to (e.g. C:\someplace\MayaStickySupraTool)
  • Edit maya.env and append to MAYA_MODULE_PATH this module like below
MAYA_MODULE_PATH=C:\someplace\MayaStickySupraTool

or

MAYA_MODULE_PATH=some\great\module;C:\someplace\MayaStickySupraTool

after launch maya

  • Assign shortcut key via hotkey editor

    Commands exists in CustomScripts > SI style tool section

Implemented Commands

SRT

  • Scale tool
  • Rotate tool
  • Move tool

Camera

  • Pan tool
  • Orbit tool
  • Dolly tool

Select

Playback

  • Next frame
  • Prev frame
  • Next key
  • Prev key

Customize Sensibility

To customize sensibility of commands, edit env vars in StickySupraTool.mod

the default value that is shared by all tools

STICKY_SUPRA_DEFAULT_POLLING=0.066
STICKY_SUPRA_DEFAULT_THRESHOLD=0.25

or each tools like below

NEXT_FRAME_POLLING=0.0083
NEXT_FRAME_THRESHOLD=0.15
TOOL_NAME_[POLLING|THRESHOLD]
TOOL_NAME
is the class of the executed command, delemitted underscore and uppercase
POLLING
means the interval of the detecting key event and fire while key press event
THRESHOLD
means the threshold between short press and long press

Extend tools

To create command class

  • derive StickySupraTool class
  • add register runtime command opt at integration/maya/userSetup.py

Notice

Extending this may cause maya into very unstable, thus using this with tough heart that isn't broken when maya crash is highly recommended. Please read AUTODESK MAYA help Python and threading.


License

MIT License

About

Tool activation commands like Softimage style (sticky/supra mode) for Autodesk Maya

Resources

License

Stars

Watchers

Forks

Packages

No packages published