Hi Anis, here are the scripts that you can use to set your view to the ones you showed.
These will work only in the current Sep-21 v2 beta, since it relies
on the new Parallel projection option that was introduced in that beta.
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';
To use these, go to Options / Shortcut keys, and set up a new shortcut with
whatever key you want, and with the above items as the Command part.
Then you can use that keystroke to get that particular view.
Here is a demo, starting with the regular Perspective,
switching to Isometric, then switching to Dimetric:
There are different varieties of Dimetric views,
this one puts this angle at 45 degrees:
- Michael