Hi, I have a script, can I assign a button
rollout myRoll "switch lod" width:149 height:164
(
colorPicker 'cp1' "flat_color" pos:[19,102] width:113 height:25 enabled:false color:(color 178 178 178) align:#left
button 'bm1' "lod1" pos:[8,8] width:41 height:21 align:#left
button 'bm2' "lod2" pos:[52,8] width:41 height:21 align:#left
button 'bm3' "lod3" pos:[97,8] width:41 height:21 align:#left
button 'lods1' "add_lod" pos:[9,72] width:132 height:21 align:#left
checkbutton 'ckb3' "flat" pos:[17,129] width:121 height:22 enabled:true align:#left
button 'btn5' "<<<<" pos:[11,40] width:65 height:22 tooltip:"prewiew_lod" align:#left
button 'btn6' ">>>>" pos:[78,40] width:65 height:22 tooltip:"next_lod" align:#left
)
createdialog myRoll
Replies
Just name the macroscript, category, and tooltip whatever you desire. After that evaluate all and open up the keyboard/hotkey editor. Customize>Customize User Interface>Keyboard. Find the category that you used in the drop down menu and then assign your desired key from the actions panel.
Edit: If you're trying to get those bm1, bm2, etc. to be their own keys that is different functionality that is beyond my scope unfortunately.