McNeel Wiki
Peter's Tools
edit · print · help · all topics
Main Pages

AccuRender

Bongo

Brazil r/s

Developer

Flamingo

Penguin

Rhino Blogs

Rhino

Rhino Labs

Search

Languages

Česky

Deutsch

English

Español

Français

Italiano

Polish

日本語

한국어

中文(繁體)

 
.
SummaryMiscellaneous scripts compiled into a plugin (developed primarily by peter harris). Download includes toolbar for easy access and setup.

Overview

I've created a plugin (hurrah for Monkey!) from the most useful of the scripts that I've written, and a toolbar to go with it. The download link is at the bottom of the page. If you'd like a copy of the original scripts, just email me!

Commands

The commands currently available in the PetersTools plug-in are as follows:

 

BOM and object properties tools:

  1. BOM - Calculates object weights based on density and exports object notes and other attributes to an excel spreadsheet. (note: objects need to have a 'real material' assigned in order to do the weight calculations.)
  2. SetRealMaterial - Allows you to assign a material to objects (includes a way to create custom materials!)
  3. SetObjectNote - Lets you add text to an object. This info is also output when using the "BOM" command
  4. SelObjectsWithNoObjectNote - Select objects that don't have any object notes associated with them.
  5. SelObjectsWithNoRealMaterial - Select objects that don't have any real material assigned to them.
  6. SelUnnamed - Selects all unnamed objects.
  7. MatchObjectNote - Matches object notes.
  8. MatchRealMaterial - Matches object real materials.
  9. NameObjects - Lets you name a bunch of objects in serial fashion (brings up a box for each object one by one.)

 

Geometry-creating or editing tools:

  1. MagicCap - Creates a planar surface from any selection of curves and/or surface edges. Click to see how it works!
  2. JoinCurvesByClosestEnds - Joins two curves by closest ends by adding two straight lines.
  3. QuickCage - Click one of 15 numbers (1 through 16) on the command line, and the tool creates a bounding-box cage around your object with that many points in each direction. Great for quick edits.
  4. SplitBoth - Splits two sets of surfaces with each other.
  5. SplitWithEdgesAndCurves - Script that basically automates typing in 'crv' after picking the split command.
  6. TrimAtLine - Prompts you to draw a line to use as a trim line, pick whatever you want to trim, then right-click to delete the line.
  7. TrimAtZero - Same, but starts line at 0,0
  8. SetX - Flattens an object in the X direction.
  9. SetX_To_0 - Flattens an object in the X direction to 0.
  10. SetY - Flattens an object in the Y direction.
  11. SetY_To_0 - Flattens an object in the Y direction to 0.
  12. SetZ - Flattens an object in the Z direction.
  13. SetZ_To_0 - Flattens an object in the Z direction to 0.

 

File utilities:

  1. BatchSaveSmall - Lets you automate saving a folder of Rhino files small (including subfolders, optionally)
  2. Open3dmFileInNewWorkspace - Opens a Rhino file without closing the currently open rhino file.
  3. OpenSelectedInNewWorkspace - Opens the currently selected objects in a new Rhino window.
  4. PickScriptFromFolder - This script creates a list of the scripts that are on your computer (well, in your search paths)

 

Project timer tools:

  1. SetProjectNumber - Allows you to enter a project number as a bit of document data.
  2. TimerOpen - Opens file with the data about when you started & stopped your projects.
  3. TimerStart - Starts a timer (based on the project number & your computer's clock.)
  4. TimerStop - Stops the timer. (thanks to David Rutten for help on these timer scripts.)

 

Misc tools:

  1. DotWithData - Adds annotation dots with part names or real materials or object volumes to all parts. (Thanks to David Rutten for a function that I used in this script to find the 'middle' of the objects.)
  2. HideCurves - Hides all visible curves.
  3. HidePoints - Hides all visible points.
  4. ZoomToUnlocked - Zooms to all unlocked objects ('normal' objects)
  5. ZoomToUnlockedAll - Same as zoom to unlocked, but all views

 

Installation

  1. Copy the "PetersTools.rhp" file to your "Rhinoceros 4.0\Plug-ins" folder.
  2. Copy the "PetersTools.tb" file to wherever you like to keep toolbars.
  3. Start Rhino.
  4. Run "PluginManager" and press the install button. Browse to your "Rhinoceros 4.0\Plug-ins" directory and select "PetersTools.rhp".
  5. Load the toolbar that you saved.

 

 

Please note: there is an issue when running scripts that are compiled with Monkey when you are also running the T-splines plugin. I have not heard of any crashes related to this, just failure of tools to work, but be cautious and save often.

Download V1.22 of PetersTools

 

E-mail me with your questions and feedback on this plug-in.

rename · changes · history · subscriptions · lost and found · references · file upload