Step-by-Step: Basic Mathematics in Grasshopper

1.   Start Rhino; maximize the Top view; type Grasshopper at the Command prompt.
2.   In Grasshopper, choose File > New Document.
3.   Double-click anywhere in the Grasshopper canvas to search for the Number Slider component.
4.   Insert a Number Slider into the Canvas.

5.   Double-click on the label of the Slider component to edit its properties.
6.   Under Numeric Domain, set the “Max” value to 100.

7.   Click OK.
8.   Single-click on the Slider and copy it to the Clipboard (ctrl-C).
9.   Paste the Slider (ctrl-V).

10.   Arrange the two Sliders vertically.

11.   Double-click anywhere in the Grasshopper canvas to search for the Addition component.

12.   Insert the Addition component into the Canvas.

13.   Repeat the previous two steps with the Subtraction, Multiplication, and Division components.

14.   Connect the first Slider to the “A” inputs of the components. Notice that the Slider automatically updates its label to “A”.

15.   Repeat the previous step with the second Slider and the “B” inputs.

16.   Double-click anywhere in the Grasshopper canvas to search for the Panel component.
17.   Insert a Panel into the Canvas.

18.   Single-click on the Panel and copy it to the Clipboard (ctrl-C).
19.   Paste the Panel three times (ctrl-V).
20.   Arrange the four panels vertically.

21.   Connect the “R” (result) outputs from the Addition, Subtraction, Multiplication, and Division components to the inputs on the panels.

22.   The Grasshopper definition is complete. Experiment with adjusting the two sliders and observe the results.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s