So I am really new to MoI, and I usually always work with only one view at the same time maximized (no split layout), and one of the first gripes that caught my attention was that after setting the view point to one of the orthographic (top/left/right/front), I had to press the button 3D again to get back to the 3D view, and could not rotate or orbit the view directly back to perspective or "isometric".
So I figured a way to do this using Shortcut keys and a custom script derived from the fantastic ones available at Petrov's Page http://kyticka.webzdarma.cz/3d/moi/
If, like me, you use only one viewport maximized, instead of setting the active view to top/bottom left/right front/back these scripts set the projection to parallel and use tilt and rotations to set the view position. This allows you to orbit back into 3D (because you actually never left the 3D view in the first place) and also tggle between each view direction with the same key like Top<>Bottom or Left<>Right or Front<>Back using an IF condition:
Hope they are useful to someone else as they are for me
Just copy/paste them and assign to a key of your choosing:
Front/back toggle
script:var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); vp.projection = 'Parallel'; vp.tiltAngle = 0; vp.upDownAngle = 90; if (vp.leftRightAngle == 0) {vp.leftRightAngle = 180;} else {vp.leftRightAngle = 0;}
Left/Right toggle
script:var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); vp.projection = 'Parallel'; vp.tiltAngle = 0; vp.upDownAngle = 90; if (vp.leftRightAngle == 90) {vp.leftRightAngle = -90;} else {vp.leftRightAngle = 90;}
Top/Bottom toggle
script:var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); vp.projection = 'Parallel'; vp.tiltAngle = 0; vp.leftRightAngle = 0; if (vp.upDownAngle == 0) {vp.upDownAngle = 180;} else {vp.upDownAngle = 0;}
Set projection back to perspective or toggle between the two
script:var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); if (vp.projection == 'Perspective') {vp.projection = 'Parallel';} else {vp.projection = 'Perspective';}
|