Viewport navigability suggestion
All  1-2  3-8

Previous
Next
 From:  wastzzz
6145.3 In reply to 6145.2 
Thank you for your reply Michael.
While the "First Person" rotate mode works well, the scripts you wrote me they work but don't exacly do what I want. Maybe you can help me fix those?
I would like the Down and Up arrow keys to move forward and backwards, and the Left and Right arrow keys to strafe left and right.
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:  Michael Gibson
6145.4 In reply to 6145.3 
Hi Max,

> I would like the Down and Up arrow keys to move forward and backwards,
> and the Left and Right arrow keys to strafe left and right.

Try these:

KeyCommand
LeftArrowscript: moi.ui.mainWindow.viewpanel.getViewport('3D').pan( -0.2, 0.0, 0.0 );
RightArrowscript: moi.ui.mainWindow.viewpanel.getViewport('3D').pan( 0.2, 0.0, 0.0 );
UpArrowscript: moi.ui.mainWindow.viewpanel.getViewport('3D').pan( 0.0, 0.0, -0.5 );
DownArrow    script: moi.ui.mainWindow.viewpanel.getViewport('3D').pan( 0.0, 0.0, 0.5 );


- 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:  wastzzz
6145.5 In reply to 6145.4 
thank you!
  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:  3image
6145.6 
Hi Michael,

That is very very useful. Thank you.

Though, is it possible to make the movement in the 3d screen work in screen space orientation?

Moreover, are there keyboard commands for the 2d screens as well?
  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
6145.7 In reply to 6145.6 
Hi 3image,

> Though, is it possible to make the movement in the 3d screen work in screen space orientation?

Do you mean for rotation? You can make rotation work relative to the view orientation by setting the option under Options > View > Rotate/Pan/Zoom options > "Rotation style" dropdown (at the top). Set Rotation style = "Free rotation" to use a view-relative rotation style, where left/right/up/down means left/right/up/down in viewing screen directions.


> Moreover, are there keyboard commands for the 2d screens as well?

For panning, you can make keyboard shortcuts that work on the active view (the view the mouse is over in split mode or the zoomed viewport in single view mode) by using the following:

KeyCommand
LeftArrowscript: moi.ui.getActiveViewport().pan( -0.2, 0.0, 0.0 );
RightArrowscript: moi.ui.getActiveViewport().pan( 0.2, 0.0, 0.0 );
UpArrowscript: moi.ui.getActiveViewport().pan( 0.0, 0.2, 0.0 );
DownArrow    script: moi.ui.getActiveViewport().pan( 0.0, -0.2, 0.0 );


- 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
 From:  3image
6145.8 In reply to 6145.7 
Excellent!

Thank you again, 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: All  1-2  3-8