| McNeel Wiki | |||||
| edit · print · help · all topics | |||||
Main Pages
Languages
| VB ScriptsThis .zip file (last revision: 03 / Fev / 06) contains all the scripts described below, saved in .rvb format - it is simpler than upload every single script... These .rvb files are ready to be copied and pasted to a button. Take a look at the MacroScriptSetup tutorial page to know what I'm talkin 'bout. AbsTolQuickly change the absolute tolerance of a document. AnglePivotRuns the Angle command with a pivot point. AnnotateCrvLengthsAnnotateCrvRadiusBothColorsQuicly changes both wireframe and render/material colors of any objects. ClearAllMeshesRuns the ClearAllMeshes command with a secure confirmation box. ClearUndoRuns the ClearUndo command with a secure confirmation box. ClosedPlanarCrvIndAreaCentroidsCreates individual area centroids for each closed planar curve selected. CopyToPtCopies several objects to selected points at the same time. (Original idea by Gelfling aka David Rutten ) CSec2Automatically creates open curves from the intersection between given cross-section and profile curves. DigDisconnectRuns the DigDisconnect command with a secure confirmation box. EncloseCrvsEncloses open planar curves inside a closed planar curve boundary. ExtendCrvsOne of the most useful scripts I've ever written: extend several curves at the same time. IndAreaCentroidsCreates individual area centroids for each srf or polysrf selected. IndBoundingBoxesCreates individual bounding boxes for each object selected. IndProjBBCreates projected to Cplane bounding boxes for each object selected. InvBottomSets an "Invert Bottom" view in any Rhino document. InvTopSets an "Invert Top" view in any Rhino document. InvDelSimply inverts selection and delete remaining objects - with a secure confirmation box. OffsetCrvsOffsets more than one curve at the same time, including a "BothSides" option. OriBBCreates an oriented Bounding Box accordingly to a 3pt Cplane. (thanks for the help, Pascal!) Orient2pt_pivotThe orient command with a pivot point (same first point on both reference and target). ProjBBAlso extremely useful: creates a Projected To Cplane Bounding Box. QuadMirrorMirror an object twice, first horizontally and then vertically, using the origin, resulting in 4 equal objects. (hmmm...is this clear enough?) RenderColorQuicly changes the render/material color of objects. ResetBothColorsRe-assigns both wireframe and render/material color of objects as "By Layer". ResetColorRe-assigns the wireframe color of objects as "By Layer". ResetRenderColorRe-assigns render/material color of objects as "By Layer". SelCrvInPlaneSelects only the planar curves in a model that coincides with the active CPlane. SelPlanarSelPlanarPolysrfSelPlanarSrfShowEAll objects of the model on the screen - basically unlocks and shows everything. Txt2CrvTransforms text objects in curves. UndoViewChangeInAllViewportsWireColorQuicly changes the wireframe color of objects. WorkspaceHere it's possible to download my personal workspace file, with custom buttons and organization. It contains the macros below, all scripts above and other useful codes from some VB masters such as Dan Bayn , Gelfling / David Rutten , Emilio Morello and Thomas Anagnostou. MacrosMacros are usually quite easy and simple. Here are some of mine: New file using templateJust replace YOURTEMPLATE with the real name of the template wanted. !-_New YOURTEMPLATE SelColor+Hide & SelColor+InvHide!_SelColor _pause _Hide !_SelColor _pause _Invert _Hide Set the Default layer onYou obviously must have a layer named "default". !-_OneLayerOn Default Open the Units Tab in Document Properties page'_NoEcho '_DocumentPropertiesPage _Units Set the Gradient View ON in all viewports & Set the Gradient View OFF in all viewports!_NoEcho -GradientView View Enter !_NoEcho -GradientView View State Enter Show Wireframes on render & Don't show wireframes on renderIt works only with TreeFrog as the current renderer . !_NoEcho -_DocumentProperties _TreeFrog _Wireframe=yes _Enter _Enter _SetRedrawOn _Echo !_NoEcho -_DocumentProperties _TreeFrog _Wireframe=no _Enter _Enter _SetRedrawOn _Echo Blend curve: tangent - position continuityCreates a blend curve using G1 and G0 continuities in the first and last input, respectively. You can use this macro as a model to create other continuity combinations. !_Blend continuity=tangency _pause continuity=position Line: Perpendicular from Curve, Both Sides from First Point! _Line _Perpendicular _BothSides _pause _FromFirstPoint Mark Both Curve Start and End! _NoEcho _CrvStart _CrvEnd Cheers/ Saudações, G. C. Webster (Guilherme C. Webster) gcwebster36@gmail.com RS - Brasil contact | ||||
| rename · changes · history · subscriptions · lost and found · references · file upload | |||||