ScriptSpot

Forum topic · General Scripting

Assign script to left-arrow

By remykonings · 2020-01-07

Description

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 (3)

.

jahman · 2020-01-07

make a macro and then bind it to a key combination

Thanks for your reply,I'm

remykonings · 2020-01-08

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.