Getting Started
The easiest way to learn SnSScript is to jump right in and try it in the RhinoScript editor in Rhino:
Editing a script
A script can be edited by running the EditScript command in Rhino. Scripts can be opened from and saved as .rvb files.
The left menu contains all of the Rhino methods that can be called from RhinoScript. Double clicking on a method will open the reference for that method, including syntax and functionality.
Running a script
Scripts can be executed within the editing interface (EditScript) by pressing F5; selecting Source > Run; or by clicking the Run this script icon.
In the Rhino interface itself, the scripts can be loaded from the file system by selecting Tools > Rhinoscript > Load….
A script can then be opened and executed. Click Add… and navigate to the script .rvb file, and click Open. Then, selecting the script and clicking Load will execute the script.
Tips
While all of the geometry methods are available in RhinoScript, it is often fastest to create the geometry in the Rhino graphical interface.
If a Rhino solid already has loads and restraints set up, SnSScript will use that scenario when it is called to run on that solid. Setting up the SnSScript scenario this way can often be faster than fully automating the creation of the scenario through the command line.
Run the following examples by cutting and pasting the code from your browser into the RhinoScript editor.