Show messages:
1-12
13-26
From: krass
Friends, hello!
I want to bother you with such a question.
I have a device, quite popular among artists and designers (and it is really very convenient to work with) - TourBox -
with customizable buttons and various knobs, to which you can bind custom hotkeys from almost any program.
I would like to understand - is it possible to bind hotkeys (not in the form of scripts) to this device?
For example, closer-farther, object rotation, change of projection types, various tools?
Perhaps someone has encountered this - I will be grateful for any advice or help.
The device itself (and a description of how to interact with it) is presented on the website
www.tourboxtech.com
From: Frenchy Pilou (PILOU)
As Moi can work with the space Navigator I suppose that will be possible! :)
Wait the answer of Michael !;)
From: krass
Thank you for your answer!
I also hope that something like this can be done - I just don't know how ))))
From: Michael Gibson
Hi krass, it looks like they have instructions here for how to set it up:
https://www.tourboxtech.com/en/manual/how-to-customize-buttons/
You would set up a shortcut key in MOI and then have the device trigger that shortcut key.
- Michael
From: krass
Mike, yhanks for answer!
Yes, I have carefully studied these instructions and I have figured out how to assign hotkeys in other applications.
The problem is that MOI3D has a slightly different principle (or I don't understand something) - I can't bind switching projection windows (for example) to some keyboard combination - this or that script is required (which are described at the very beginning of the topic).
And how to implement this - I don't quite understand here (((
From: Michael Gibson
Hi krass,
re:
> I can't bind switching projection windows (for example) to some keyboard combination - this or
> that script is required (which are described at the very beginning of the topic).
Do you mean you want a shortcut key for the Options dialog > View > "3D view projection" setting?
Go to Options > Shortcut keys and put in this for the "Command" part:
script: var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); if ( vp.projection == 'Perspective' ) { vp.projection = 'Parallel'; } else { vp.projection = 'Perspective'; }
When the shortcut is triggered it will switch the 3D viewport between parallel or perspective projection modes.
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 here:
https://moi3d.com/download/scripts/PetrsMoiPage/PetrsMoiPage.htm
If you want something that isn't listed just post what you want here and I can tell you the script code to do that.
- Michael
From: krass
Apparently I wasn't understood correctly by you.
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'); if ( vp.projection == 'Perspective' ) { vp.projection = 'Parallel'; } else { vp.projection = 'Perspective'; })
From: Frenchy Pilou (PILOU)
Input just the Moi's short Cut for example "Ctrl + G" defined for a script inside the Moi Options Menu... to a button of TourBox ?
From: krass
This is an interesting thought, thank you, I will try this method!!
From: krass
Yes, amazing, it works! )))
Thank you very much
Two points that I would like to clarify.
1 - where can I find a list of all the hotkeys (scripts) for my3d tools?
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)?
Thank you very much in advance!!
From: Michael Gibson
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
From: Michael Gibson
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
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
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-12
13-26