Question too 3DViewport

Next
 From:  eddi
701.1 
Halo Michael, hi all,

These scripts are very useful,
>script:moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'down', VALUE );
>script:moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'up', VALUE );
>script:moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'right', VALUE );
>script:moi.ui.mainWindow.viewpanel.getViewport('3D').rotate( 'left', VALUE );

One could insert window, which indicates the current position. (if script actively, angle horizontal, angle vertically) ?????
BestReg`s EDDI
  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
701.2 In reply to 701.1 
Hi Eddi, I'll see if I can set something up for this.

- 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
701.3 In reply to 701.1 
Hi Eddi, I have added this for the next beta. Under Options / View, there is a new button that will bring up a dialog that lets you set the exact angles for the view direction for the 3D view.



Up/down angle controls the vertical angle, 0 is at the top looking straight down.

Left/right angle controls horizontal angle, 0 is looking straight forward, 90 is looking from the right, etc..

Tilt controls twisting to the left or right along the current view direction.

This also has exposed some new script properties for a viewport that make it possible to set specific view angles by a shortcut key, for example:

script:var v = moi.ui.mainWindow.viewpanel.getViewport('3D'); v.leftRightAngle = 45; v.upDownAngle = 90; v.tiltAngle = 0;

- Michael
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:  Frenchy Pilou (PILOU)
701.4 In reply to 701.3 
Have you also some spherical wiew possibilities in your treasure chest? :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  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
701.5 In reply to 701.4 
Hi Pilou, I think you were asking about this view angle thing before as well?

re: spherical view - the "up down" and "left right" angles in that new dialog are the same thing as a vertical and horizontal angle in a spherical coordinate system.

Is there something else that you're looking for other than that?

- 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:  Frenchy Pilou (PILOU)
701.6 In reply to 701.5 
Something like that :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  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:  eddi
701.7 In reply to 701.3 
Suuuuper, looks good
BestReg`s EDDI
  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
701.8 In reply to 701.6 
Hi Pilou, That one isn't so easy, I won't be able to do anything like that very soon...

Maybe in the meantime if you bend your monitor around? :)

- 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:  tyglik
701.9 In reply to 701.3 
Hi Michael,

>>I have added this for the next beta.
>>Under Options / View, there is a new button that will bring up
>>a dialog that lets you set the exact angles for the view direction for the 3D view.

When no objects are visible, the Reset button in the 3D viewport could reset view in accordance with the setting in a new dialog you mentioned above instead of reseting into hard-coded initial position. How do you feel about it?

Petr
  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
701.10 In reply to 701.9 
Hi Petr, under the current setup that won't work because that dialog is not static - when you open it up the values in it will reflect the current 3D view orientation, not just the last values that were entered there.

In fact, you can rotate your view around when the dialog is showing and the values will dynamically update to the current view orientation.

So the dialog itself does not maintain some different setting from the view, it's more of a reflection of the view so you can both see and edit the view angles there...

- 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