View change

 From:  Michael Gibson
2104.3 In reply to 2104.1 
Hi Danny,

> I don't know if it has been asked before, is there a way to
> orient the model in the 3D view port to display it as front,
> right etc. views, not actually changing the 3D view port to
> another view port just the model ?

Really MoI is set up with the idea that you switch between the different
maximized views to do that. There is a bunch of other stuff that goes
along with that aside from just having the camera direction set, like
the construction plane is set up plan to each of those views
automatically, and those views are set up to be parallel projections
whereas the default 3D view is set to use a perspective projection.
So normally there is a bundle of stuff that is being switched between
those views and the 3D view.

It is possible to set the view direction of the 3D view using a script
macro though.

For example, to set the 3D view to be looking forward like a Front view:
code:
script:moi.ui.mainWindow.viewpanel.getViewport('3D').setAngles( 90, 0 );


However, with the default construction plane you won't be able to draw
in that view because you will be looking down exactly at the edge of it.
So you might want to set the construction plane at the same time like
this:
code:
script:moi.ui.mainWindow.viewpanel.getViewport('3D').setAngles( 90, 0 ); moi.view.setCPlane( moi.vectorMath.createFrontFrame(), false );



That would allow you to stay within the 3D view and just change the direction that it is looking in.

Does that do the kind of thing you're looking for?

- Michael

EDITED: 23 Oct 2008 by MICHAEL GIBSON