custom views
All  1  2-4

Previous
Next
 From:  Michael Gibson
9648.2 In reply to 9648.1 
Hi Matt, so do you mean you want a script that will do the same as setting the angles in the View angles dialog that you show there?

In script form that should go like this:
script: var vp = moi.ui.mainWindow.ViewPanel.getViewport('3D'); vp.setAngles( 59.79, 46.15, 0.16); vp.fieldOfViewAngle = 30.0;

The setAngles() method on a viewport takes the up/down, left/right, and tilt angles and field of view is set by the .fieldOfViewAngle property.

re: saved views, some ideas have been percolating for a while on that. I'm kind of thinking that stuff that involves saved named lists could go in the scene browser under a "Views" section. Then maybe background bitmaps, named construction planes and named views could go under 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:  mattj (MATTJENN)
9648.3 
Hi Micheal

Thats exactly what i was looking for. :-)

I was thinking it would be more complicated as the iso version looks like "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), 135 );"

Yes a list of saved views would work well. And then if there was an add button which would take the current settings form the view to easily add more.

Many thanks as always

Matt
  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
9648.4 In reply to 9648.3 
Hi Matt,

> Yes a list of saved views would work well. And then if there was an add button
> which would take the current settings form the view to easily add more.

Yes there are a couple different controls that would be needed like add and remove. One thing that I haven't determined yet is how to best arrange these additional controls inside the browser pane.

- 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-4