Assign script to left-arrow

Hi, I try to figure out how i can assign a script to a hotkey (right-arrow button in this case). I like to make a rotation of 5 degrees in the z-axis of my selected object with my right arrow button. Is this possible through maxscript? It would be part of a bigger script.

(

(

local axis = [0,0,1]

rotate selection -90 axis

)

)

 

Thank you.

 

content i've check out but couldn't make sense of:

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/20...

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture

.

make a macro and then bind it to a key combination

remykonings's picture

Thanks for your reply,I'm

Thanks for your reply,

I'm just not understanding which code to use in order to assign a hotkey through Maxscript.

We have network loaded toolbar so I like to assign a hotkey through scripting so everybody uses the same hotkey.

jahman's picture

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.