# Grasshopper Scripting Gallery

 Grasshopper Gallery Pages Robert McNeel & Associates

Summary: A gallery of examples of Grasshopper definitions

## Workshop files

 Name Preview Description VB.NET Code Samples Six examples using VB scripting, with increasing difficulty starting from simple expression all the way to using functions. I did multiple methods for some of them to show various ways to get the same result. Contact Rajaa Issa. VB Switch Gate Explains how to switch between lists.

## Curve generators

 Name Preview Description Spirograph Rose Curves 1 Create both 3D and 2D rose curves Fractal Curve Generator Experiment by using a Base and Generate Curve to create different fractal shapes. Contact Rajaa Issa. Fractal Curve Transformer Experiment by using a Base and Generate points to transform different fractal shapes. Contact Rajaa Issa.

## Utility script definitions

 Name Preview Description Random Curve Divide No preview available Divide a line generally in an equal number, with a little randomness in the spacing. Create Clamped Nurbs Curve Create open or clamped NURBs curve using GH VB.NET component. Contact Rajaa Issa. Create Periodic Nurbs Curve Create a closed or periodic NURBs curve using GH VB.NET component. Contact Rajaa Issa. Create Curves from Lists of Points Create series of curves through connecting points of same index in three groups of points using GH VB.NET component. Contact Rajaa Issa. For...Next Loop Example An example explaining the structure of For.. Next loop. Contact Rajaa Issa. Find Sum of nNmbers no preview available An example explaining how to find the sum of a range of numbers using VB.NET. Contact Rajaa Issa. Divide Surface An example explaining how to divide surface domain and extract rows of divide points using VB.NET. Contact Rajaa Issa. Sweep Surface 1 and 2 An example using VB.NET to sweep a surface. Contact Rajaa Issa. Create a grid of points the extract u and v direction isocurves An example using VB.NET to process a one dimetion grid of points and extract curves in U and V directions. Contact Rajaa Issa.

## Excel script definitions

 Name Preview Description Read Excel Spreadsheet Data into GH Divide Read cell values and points out of an Excel spreadsheet. Based on information from Liquid Tectonics Grasshopper data linked into Microsoft Excel @@Image(“”,“Excel Connection”, “750”, “225”)@@ Point data from Grasshopper directly into Microsoft Excel. Designer: Zach Downey.

## Generative algorithms: Lindenmayer-System (L-System)

(Samples were developed in support of Georgia Tech graduate course on generative design in architecture, Spring 2009)

 Name Preview Description Koch Curve. Grasshopper and RhinoScript samples. Download... Penrose Tiling. Grasshopper and RhinoScript samples. Download... Check wikipedia for theoretical details. Contact Rajaa Issa. Sierpinski Triangle - V1 and V2. Grasshopper and RhinoScript samples. Download... Check wikipedia for theoretical details. Contact Rajaa Issa. Fractal Plant. Grasshopper and RhinoScript samples. Download... Check wikipedia for theoretical details. Contact Rajaa Issa. Dragon Curve. Grasshopper and RhinoScript samples. Download... Check wikipedia for theoretical details. Contact Rajaa Issa.

## Generative algorithms: Cellular Automata (CA)

(Samples were developed in support of Georgia Tech graduate course on generative design in architecture, Spring 2009)

 Name Preview Description Conway Game of Life. Grasshopper and RhinoScript samples. download... The algorithm is Conway's game of life. Check wikipedia for theoretical details. . Contact Rajaa Issa.

## Digital Design Studio: Conceptual Skyscraper (B. Arch. 8.5 weeks), supervised by Dr. Chengyu Sun

(Samples were developed by 4th year undergraduate students, Tongji University, China, Spring 2009.)