shortcut assignments
 1-9  10-26

Previous
Next
 From:  Duarte Ramos (DUARTEFRAMOS)
3808.10 In reply to 3808.2 
Hey guys, it's been a while.
So I came back to moi after a long period of inactivity (I've been modeling in Blender the most lately), to make my actual first commercial 3D model in MoI

I was setting up my V3 non beta last night and I was trying these scripts, and although they do set the view right, the toggle part of the script doesn't seem to be working anymore.
If I understand correctly these are supposed to reverse the view (from top>bottom, left>right etc.) right? Did I do something wrong or did anything change that broke the toggling part of the script?
  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.11 In reply to 3808.10 
Hi Duarte, welcome back!

> If I understand correctly these are supposed to reverse the view (from top>bottom, left>right etc.)
> right? Did I do something wrong or did anything change that broke the toggling part of the script?

Actually these scripts from the above post (http://moi3d.com/forum/index.php?webtag=MOI&msg=3808.2) are meant to just go to one specific view so you can set a specific key to go always immediately to the Back view for example, without needing to do any toggle.

Here are some that will work with a toggle type action, these will set the view to maximized or if already maximized it will toggle it.


Set maximized Top view or toggle Top/Bottom:
script:var vname = 'top'; var vp = moi.ui.mainWindow.viewpanel; if ( vp.mode == vname ) vp.reverseView( vname ); else vp.mode = vname;

Set maximized Front view or toggle Front/Back:
script:var vname = 'front'; var vp = moi.ui.mainWindow.viewpanel; if ( vp.mode == vname ) vp.reverseView( vname ); else vp.mode = vname;

Set maximized Right view or toggle Right/Left:
script:var vname = 'right'; var vp = moi.ui.mainWindow.viewpanel; if ( vp.mode == vname ) vp.reverseView( vname ); else vp.mode = vname;


- 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:  Duarte Ramos (DUARTEFRAMOS)
3808.12 In reply to 3808.11 
Oh sorry for the misunderstanding, I was under the impression it was supposed to toggle.
Anyway thanks a lot for those new scripts, they come really in handy. The toggling function really helps a lot, with that option I can really free up a lot of hot keys for other functions,

Many thanks!
  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.13 
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
  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.14 In reply to 3808.13 
As Moi can work with the space Navigator I suppose that will be possible! :)
Wait the answer of 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.15 In reply to 3808.14 
Thank you for your answer!
I also hope that something like this can be done - I just don't know how ))))
  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.16 In reply to 3808.13 
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
  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.17 In reply to 3808.16 
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 (((
  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.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-9  10-26