PDA

View Full Version : Maya 2011 - Hotkey


timberwo7ves
24-08-2011, 10:24 AM
Is there anyway to have a python command (not MEL) as a hotkey (not as a button on the shelf)?

It surprises me that it lets you choose between MEL/Python when you write a command for the shelf, but there doesn't seem to be the same selector for the hotkey editor. Unless I'm missing something really obvious :(

Any help appreciated - even if there's a hacky way to achieve the same effect (map a hotkey to python cmd).
--

or even a MEL command to a shelf button - such that I could put the python cmd in a shelf button and then map a hotkey to a mel cmd which linked the button :S

timberwo7ves
24-08-2011, 12:43 PM
In case anyone has the same issue, I used this site's solution http://www.rodgreen.com/?p=205.

Saving my python script in a .py, and using the MEL interpreter to call the Python interpreter to import and execute the python script, via the Hotkey Editor.

niteshahir
15-09-2011, 07:21 AM
thanks for sharing such a news..