Running scripts


Root  Previous item  Next item

In order to run the scripts that are available from this site, you can take one of three actions:
A. Save the files to your hard disk and use the LoadScript dialog to load and run them manually.
B. Save the files to your hard disk and create a new button with the macro:
   -_LoadScript "C:/Program Files/Rhino3D/Scripts/NameOfTheScriptFile.rvb"

This basically automates step A...
You can edit buttons by Shift+RightClick in Rhino.

RhinoButtonEditor

C. Load the script file in a plain text editor (Notepad or ConTEXT or whatever) and add two lines of code to the script. One in front of the code and one behind it:

   -_RunScript (
      <here comes the scriptfile you downloaded>
   )

Then copy paste the entire text file into a mouse button command field (same area as step B). Note that the button editor macro field has a limited amount of lines available. Very large scripts may not fit and therefore not run. If this is the case you *must* use either step A or B.



 


For additional information.