shortcut assignments
 1-17  18-26

Previous
Next
 From:  Michael Gibson
3808.18 In reply to 3808.17 
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

EDITED: 11 Jun by MICHAEL GIBSON

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  krass
3808.19 In reply to 3808.18 
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'; })
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
3808.20 In reply to 3808.19 
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 ?

EDITED: 11 Jun by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  krass
3808.21 In reply to 3808.20 
This is an interesting thought, thank you, I will try this method!!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  krass
3808.22 In reply to 3808.20 
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!!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3808.24 In reply to 3808.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  krass
3808.25 In reply to 3808.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.

EDITED: 12 Jun by KRASS

Image Attachments:
Size: 294.3 KB, Downloaded: 38 times, Dimensions: 762x671px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
3808.26 In reply to 3808.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-17  18-26