User Tools

Site Tools


wiki:sns:snsscript:getting_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:sns:snsscript:getting_started [2017/07/14 14:01] clairewiki:sns:snsscript:getting_started [2017/07/14 14:03] (current) claire
Line 1: Line 1:
 +~~NOTOC~~
 ======Getting Started====== ======Getting Started======
  
 The easiest way to learn SnSScript is to jump right in and try it in the [[https://wiki.mcneel.com/developer/rhinoscript|RhinoScript]] editor in Rhino: The easiest way to learn SnSScript is to jump right in and try it in the [[https://wiki.mcneel.com/developer/rhinoscript|RhinoScript]] editor in Rhino:
  
-**Tools > RhinoScript Edit...**+====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. Run the following examples by cutting and pasting the code from your browser into the RhinoScript editor.
------+
 ====Basic Examples==== ====Basic Examples====
 [[Short Example]]\\ [[Short Example]]\\
wiki/sns/snsscript/getting_started.1500062477.txt.gz · Last modified: 2017/07/14 14:01 by claire