MoI discussion forum
MoI discussion forum

Full Version: shortcut assignments

Show messages:  1-3  4-23  24-26

From: Michael Gibson
11 Jun   [#24] In reply to [#22]
Hi krass,

re:
> 1 - where can I find a list of all the hotkeys (scripts) for my3d tools?

There are some of the most commonly used scripts listed here:
https://moi3d.com/4.0/docs/moi_command_reference11.htm#shortcutkeys
like Hide, Lock, reset all views, select all, deselect all, invert selection, go to split view, maximize 3d/top/front/right view, isolate selection, select all curves, turn grid snap on/off, and some more.

Also there are more scripts here:
https://moi3d.com/download/scripts/PetrsMoiPage/PetrsMoiPage.htm



> 2 - is it possible to bind the rotation of the selected object to the scroll/dial
> wheels (now it is done by holding the mouse and rotating it)?

Sorry no, the mouse scroll wheel is used in MOI for zooming the view in and out. There isn't any way to set it to do object rotation instead of that.

It is possible to set up a shortcut key that would rotate the selected objects by one step though, would you like that? Scripts that modify objects are set up a little differently than ones that modify settings.

- Michael
From: krass
12 Jun   [#25] In reply to [#24]
Mike, thank you very much for your (as always very useful and informative) advice.
I will study everything carefully!

As for rotation, it was not about the "mouse wheel", but rather an attempt to tie the rotation of an object/camera (as an option) to the sliders on Turbobox.
There are three different ones and - in addition to rotation, they also have "press" functions.

I am thinking about how they can be used in the work of Moi3D.

Image Attachments:
55shot_3.png 


From: Michael Gibson
12 Jun   [#26] In reply to [#25]
Hi krass, some camera movement for the wheels might be good.

Try some of these:

Rotate 3D viewport one step up:
script: moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'up', 4.0 );

Rotate 3D viewport one step down:
script: moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'down', 4.0 );

Rotate 3D viewport one step left:
script: moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'left', 4.0 );

Rotate 3D viewport one step right:
script: moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'right', 4.0 );


Pan active view one step left:
script: var left_right = -1.0, up_down = 0.0, backwards_forwards = 0.0; var vp = moi.ui.getActiveViewport(); if ( vp ) { vp.pan( left_right, up_down, backwards_forwards ); }

Pan active view one step right:
script: var left_right = 1.0, up_down = 0.0, backwards_forwards = 0.0; var vp = moi.ui.getActiveViewport(); if ( vp ) { vp.pan( left_right, up_down, backwards_forwards ); }

Pan active view one step up:
script: var left_right = 0.0, up_down = -1.0, backwards_forwards = 0.0; var vp = moi.ui.getActiveViewport(); if ( vp ) { vp.pan( left_right, up_down, backwards_forwards ); }

Pan active view one step down:
script: var left_right = 0.0, up_down = 1.0, backwards_forwards = 0.0; var vp = moi.ui.getActiveViewport(); if ( vp ) { vp.pan( left_right, up_down, backwards_forwards ); }


Zoom like the mouse scroll wheel forward:
script: var vp = moi.ui.getActiveViewport(); if ( vp ) { vp.wheelZoom( true ); }

Zoom like the mouse scroll wheel backward:
script: var vp = moi.ui.getActiveViewport(); if ( vp ) { vp.wheelZoom( false ); }

- Michael

Show messages:  1-3  4-23  24-26