The SortalGI Grasshopper plug-in encapsulates the SortalGI shape grammar interpreter and makes part of its functionality available within Grasshopper. It supports the specification and application of shape rules and the generation of single or multiple rule application results. The SortalGI Grasshopper plug-in currently only supports (non-parametric) line segments and labelled points, in 2D or 3D. Emergence is naturally supported.
The SortalGI Grasshopper plug-in is made available as a .zip file. After unzipping it, you will find a folder containing the following components: a sortal-setup folder, a components folder, a sample folder and a PDF document explaining the installation process.
- The sortal-setup folder contains a setup batch file and a number of support packages, including the SortalGI (Python) library.
- The components folder contains the Grasshopper user objects that give access to (part of) the functionality of the SortalGI (Python) sortal grammar interpreter.
- The sample folder offers a few demonstrations of the use of the SortalGI Grasshopper plug-in.
- Annex E Installation (Windows) provides the installation instructions for the SortalGI Grasshopper plug-in for Windows.
The installation involves two steps. The first step is the installation of the SortalGI library, the second step is the installation of the SortalGI plug-in user objects. These steps are also explained in the Annex E Installation (Windows) instructions.
- Execute the setup.bat batch file which can be found in the sortal-setup folder. This will copy the content of the sortal-setup\site-packages folder into the Plug-ins\IronPython\Lib\site-packages folder of your Rhino installation folder. Alternatively, you can do so manually.
- Next, add the Plug-ins\IronPython\Lib\site-packages folder of your Rhino installation folder into Rhino's Module Search Paths.
- Launch Rhino
- Type EditPythonScript in the Command box
- In the Rhino Python Editor window, select 'Options...' from the Tools menu
- Add the Plug-ins\IronPython\Lib\site-packages folder of your Rhino installation folder into the 'Module Search Paths'
- Select the Script Engine tab, check the 'Frames Enabled' option and click 'OK'.
- Open Grasshopper and select the 'User Object Folder', under 'Special Folders', from the File menu. Copy the content of the sgi_components folder into the UserObjects folder.
- Exit Rhino and relaunch Rhino. The SortalGI plug-in should now be present as a specific tab in the Grasshopper Components Tab Panel, called 'SGI'.
You are now set to go.
The sample folder contains a few grasshopper demonstration files
- rules 1 creation.gh shows the creation of two rules. One to move a square diagonally and another to move an L-shape diagonally.
- rules 2 application.gh shows a derivation (Knight, 2003) applying the two rules created above, using a series of Apply nodes.
- rules 3 exploration.gh shows an extended derivation of all possible rule applications over two steps, applying the two rules created above, using two Apply All nodes. Note that if you change the input values to the SGI Setup node, you may need to press function key 'F5' in order to re-execute all the nodes, based on the new input.
- inscribed square.gh shows a derivation (Stiny, 1985) applying a rule to inscribe a square with a rotated square, using a labeled point to constrain rule application.