calling a function with hotkey


#1

How can I call a function with the “nameComand” Flag " -command = ‘String’ "?

Regards
Max


#2

from the maya docs…

// Create a nameCommand object.
nameCommand -ann “The Circle Tool” -c “setToolTo circleContext” circleToolNameCommand;

// Now map the nameCommand to a hotkey.
hotkey -keyShortcut “F5” -altModifier -name “circleToolNameCommand”;


#3

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.