shortcut assignments

 From:  Michael Gibson
3808.23 In reply to 3808.19 
Hi krass, it sounds like you've got it worked out but just in case:

>
> I wrote that the controller system understands only keyboard shortcuts (and mouse clicks) to program the device.
>
> For example, Alt + F1 (Cntrl + G) and so on.
> But not the format of the script type moi (script: var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); <...>

Right, inside MoI you set up the shortcut key and MOI script, like Alt+F1 = script: var vp = moi.ui.mainWindow.etc..

Then inside the device software you don't give the MOI script there, you just tell it to send Alt+F1.

So there are 2 pieces that work together - set up shortcut key with script in MOI and in the device software assign a device button to emit the shortcut key.

- Michael