Nuts and Bolts | Scripts

Monday, 22 Jun 2015. Posted by: Smirnov

Curvimeter | Inline scripts

Saturday, 30 May 2015. Posted by: Smirnov
Measures the length of selected curves. The result is copied to the clipboard.
script:/* Curvimeter 1.1 */ var c=moi.geometryDatabase.getSelectedObjects().getCurves(), l=0; for (var f=0; f<c.length; f++) l +=c.Item(f).getLength(); moi.copyTextToClipboard(l); moi.ui.alert('Total length ('+c.length+'): '+l.toFixed(4)*1+' '+moi.geometryDatabase.unitsShortLabel);

CyclicPoly | Scripts

Saturday, 23 May 2015. Posted by: Smirnov

DelCornersEx | Inline scripts

Sunday, 05 Apr 2015. Posted by: Smirnov
script:/* DelCornersEx 1.0 */ var fs=moi.filesystem, fl=fs.getTempDir()+'tmp.stp', gd = moi.geometryDatabase; gd.fileExport(fl); gd.removeObjects(gd.getSelectedObjects()); gd.fileImport(fl); fs.deleteFile(fl);

Cycles render | Scripts

Sunday, 15 Mar 2015. Posted by: Smirnov

Lock construction lines | Inline scripts

Sunday, 15 Mar 2015. Posted by: Smirnov
script:/* Lock construction lines */ var cln =0, gd = moi.geometryDatabase, cl = gd.getObjects().getConstructionLines(), cll = cl.length; for (var i=0; i<cll; i++) if (!cl.item(i).isTemporary) cln++; if (cln == cll) { gd.removeObjects(cl) } else { cl.setProperty( "isTemporary", false ) }

Rotate curves around endpoints | Inline scripts

Monday, 23 Feb 2015. Posted by: Smirnov
script:/* Rotate curves v1.1 */ var obj=moi.geometryDatabase.getSelectedObjects().getCurves; for ( var i=0; i<obj.length; i++) { var clist = moi.geometryDatabase.createObjectList(); clist.addObject(obj.item(i)); var f=moi.command.createFactory( 'rotateaxis' ); f.setInput( 0, clist ); f.setInput( 1, obj.item(i).getStartPt()); f.setInput( 2, obj.item(i).getEndPt()); f.setInput( 3, 90 ); f.commit()}

Subdiv Classic | Scripts

Sunday, 22 Feb 2015. Posted by: Smirnov
« Previous   Next »