calling a function with hotkey


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



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”;


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.