Change view rotation with arrow keys

Next
 From:  Juniper
11635.1 
I do a lot of illustrations with Moi despite having access to software costing a lot more. It's so quick and having the possibility to copy/paste into illustrator just makes everything smooth.

I usually have a tilt on the object ( 1) and then a rotation (2) set to a script, set to different shortcuts.
For example, shortcut A for tilt 12, rotation 90, shortcut B for tilt 12 rotation 135 and so on. So its a lot of shortcuts.



Would it be possible to set the rotation to add 45 degrees with every keypress ? ( and of course the tilt too.)
Attachments:

  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:  vic
11635.2 In reply to 11635.1 
The Following script are from resources section
Install those scripts and change 6.0 for your Number 45.0 or another number.

RotateView – this allows rotating the 3D view with the arrow keys. To do this, use these keyboard shortcuts:

UpArrow script:moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'up', 6.0 );
DownArrow script:moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'down', 6.0 );
LeftArrow script:moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'left', 6.0 );
RightArrow script:moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'right', 6.0 );

In the next script replace 30 by 0 and 45 by 0, this will help you set your view angle to Zero and then rotate with arrows .

Set Isometric
I script:var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); vp.projection = 'Parallel'; vp.setAngles( 90 - (Math.asin(Math.tan(30 * Math.PI/180)) * 180/Math.PI), 45 );
  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:  Juniper
11635.3 
Thanks vic!
Exactly the solution I was going for.
  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