Distort Curves | Scripts

Tuesday, 04 Nov 2014. Posted by: Smirnov

Wireframe mode | Inline scripts

Monday, 03 Nov 2014. Posted by: Smirnov
Switches selected objects to wireframe mode
script:/* Wireframe v1.0 */ var gd = moi.geometryDatabase, so=gd.getSelectedObjects(); if (so.length>0) { so.setProperty( 'displayMode',1); so.setProperty( 'selected', 0); } else { gd.getObjects().setProperty( 'displayMode',0); }

Reset viewports | Inline scripts

Monday, 03 Nov 2014. Posted by: Smirnov
Resets viewports with zoom correction. You can adjust the zoom correction value "zm" (default: 1.2)
script:/* Reset view */ moi.view.resetAll(); var zm=1.2, vp = moi.ui.mainWindow.viewpanel.getViewport; vp('3D').zoom(zm); vp('Top').zoom(zm); vp('Front').zoom(zm); vp('Right').zoom(zm);

Align CPlane with 3D view | Inline scripts

Monday, 03 Nov 2014. Posted by: Smirnov
Sets the construction plane parallel to the 3D view.
script: /* Align CPlane with 3D view 1.0 */ var cp=moi.view.getCPlane(), tp=moi.ui.mainWindow.viewpanel.getViewport('3D').targetFrame, tl=moi.VectorMath.pointsWithinTolerance; if (tl(cp.origin,tp.origin) && tl(cp.zaxis,tp.zaxis)) { moi.view.resetCPlane() } else {moi.view.setCPlane(tp, false)}