eclaté

 From:  Frenchy Pilou (PILOU)
341.8 
ou cela ?

By Michael
The viewing angle of the 3D view is possible to set by a script, so you could set up a keyboard shortcut that would set the view to a particular angle. You could have a few different keys set up to do some different presets if you want...

The way you do it is to go to Options / Shortcut keys, then add in a new one, for the key put in whatever key you want and for the command put in this:
code:

script:var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); vp.upDownAngle = 30.0; vp.leftRightAngle=60.0;


Set Isometric:
code:

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 );


Set Dimetric:
code:

script:var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); vp.projection = 'Parallel'; var as13 = Math.asin(1/3); vp.setAngles( 90 - (Math.asin(Math.tan(as13)) * 180/Math.PI), as13 * 180/Math.PI );


Return to Perspective view:
code:

script:var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); vp.projection = 'Perspective';

EDITED: 24 Jul 2013 by PILOU