Grasshopper Workspace

• View
236

2

Embed Size (px)

Text of Grasshopper Workspace

• 8/10/2019 Grasshopper Workspace

1/20

Grasshopper Learning MaterialSyracuse Architecture / Apr 10th 2010

by Woojae Sung / woojsung.comGH Version 0.6.0059

• 8/10/2019 Grasshopper Workspace

2/20

Chapter01Grasshopper Introduction

• 8/10/2019 Grasshopper Workspace

3/20

Basic ConceptGrasshopper is a graphical algorithm editor. We work on real 2D/3D geometries with Rhino. With Grasshopper, we work on the algo-rithm behind those real geometries.

Basic Concept : Apple Making ProcessIn RhinoBelow is an usual work pr ocess to make an apple in Rhino work environment. First we need to draw a profile curve and a rotation axis.Then, type in Revolve then pick the profile and rotation cur ves with star ting and ending angles. In this case, we supply 0 as the star tingangle and 360 as the ending angle to get a whole apple.

PROFILE CRV - TYPE REVOLVE- HIT ENTER- PICK PROFILE CRV- HIT ENTER- PICK ROTATION AXIS- HIT ENTER- TYPE 0 AS START ANGLE- HIT ENTER- TYPE 360 AS END ANGLE

ROTATION AX IS

TYPE REVOLVE YOUR APPLEPICK PROFILE CRV E N T E R

E N T E R

PICK ROTATION AXIS E N T E R

0 AS START ANGLE E N T E R

360 AS END ANGLE E N T E R

What if we want to have only a quar ter of an apple? Basically, we need to do the same thing again, but this time, we supply 0 as the start-ing angle and 90 as the ending angle.

PROFILE CRV - TYPE REVOLVE- HIT ENTER- PICK PROFILE CRV- HIT ENTER- PICK ROTATION AXIS- HIT ENTER- TYPE 0 AS START ANGLE- HIT ENTER- TYPE 90 AS END ANGLE

ROTATION AX IS

TYPE REVOLVE YOUR APPLEPICK PROFILE CRV E N T E R

E N T E R

PICK ROTATION AXIS E N T E R

0 AS START ANGLE E N T E R

90 AS END ANGLE E N T E R

Now, your boss wants to have a table on which 5,000 apples, 2,500 three quar ter apples, 1,250 two quar ter apples, and 1,250 one quar-ter apples are distributed randomly. First you should make a table which has 10,000 reference points on it. Then make 4 different typesof apple, copy and move one by one to the reference points. Dont forget to count apples so as to make your boss happy.

BUILD A TABLE WITH 10000 POINTS ON IT

BUILD APPLES

10000 POINTS

x 1250

x 1250

x 2500

x 5000

ARRAY THEM ON THE TABLE

10000 APPLES

Chapter01 Grasshopper Introduction

• 8/10/2019 Grasshopper Workspace

4/20

Your boss is not happy with this. He wants to change the mixing ratio of apples. You have two choices; do it again, or find another job.

DO IT AGAIN, OR KILL YOUR BOSS AND GET A NEW JOB

In GrasshopperIn Grasshopper, you dont work on the real geometries. Rather, you work on the logic behind the geometr ies. Once the apple makinglogic has been set up, you can change parameters such as star ting and ending angles. Also you can change the shape of apples by sup-plying different profil e curves as well as rotation axis. Or you can make multiple apples out of just one definition by supplying multipleangle values and/or profile/rotation curves to the definition.

PROFILE CRV - TYPE REVOLVE

- HIT ENTER

- PICK PROFILE CRV

- HIT ENTER

- PICK ROTATION AXIS

- HIT ENTER

- TYPE 0 AS START ANGLE- HIT ENTER

- TYPE 360 AS END ANGLE

ROTATION AXIS

TYPE REVOLVE YOUR APPLEPICK PROFILE CRV E N T E R

E N T E R

PICK ROTATION AXIS E N T E R

0 AS START ANGLE E N T E R

360 AS END ANGLE E N T E R

INPUTS

OUTPUTS

PARAMETERS

INPUTS

OUTPUTS

PARAMETERS

SUPLY MULTIPLE INPUTS

MODIFY INPUTS

10000 APPLES ARE

SUPLY MULTIPLE PARAMS

MODIFY PARAMS

GRASSHOPPER LEARNING MATERIALCH01.3

• 8/10/2019 Grasshopper Workspace

5/20

Chapter02Interface / Basic Knowledge

• 8/10/2019 Grasshopper Workspace

6/20

InterfaceGrasshoppers workspace is pret ty simil ar t o other windows applications. However, as a history/algorithm editor, it has some uniquefeatures l ike components/parameters, which eventually will be linked to each other to make a working definition.

File handling, copy/paste, undo/redo, inter face/display sett ing, realt ime solution toggle, etc..

Shelves

Shelves are where all Grasshopper objects are listed by categories. Each shelve has its sub tabs which show limited numbers of items.To access to all available components/parameters, click on black tit le bar at the bottom.

Canvas Tool Bar

Shor t cuts for some frequently used commands such as zoom extend, realtime solution on/off toggle, show/hide toggle, componenton/off toggle, and bake command button.

Chapter02 Interface / Basic Knowledge

• 8/10/2019 Grasshopper Workspace

7/20

Canvas

Canvas is the main workspace where you work with lots of component/parameter to make an actual definition. To activate a compo-nent/parameter, click the component/parameter icon on a shelve and drop it on canvas by clicking somewhere on canvas. Once youdrop it, you can move, delete, copy or paste as you do in other windows applications. You can also pan/zoom your working canvas withmouse button as you do in Rhino.

Status Bar

Displays information such as errors, warnings, etc..

GRASSHOPPER LEARNING MATERIALCH02.3

• 8/10/2019 Grasshopper Workspace

8/20

Interface : Grasshopper ObjectsGrasshopper objects fall into two major categor ies, components and parameters, which will be covered later on this tutorial. However,before we move on, it is impor tant to understand how Grasshopper objects are structured.

Structure & Types of Grasshopper Objects

INPUT TAB + INPUT OPTION + BODY + OUTPUT OPTION + OUTPUT TAB

INPUT TAB + BODY + OUTPUT TAB

BODY + OUTPUT OPTION + OUTPUT TAB

INPUT TAB + INPUT OPTION + BODY

I N P U T O P T I O N

R I G H T C L I C K T O C H A N G E O P T I O N S

I N P U T T A B

I N P U T F R O M

O T H E R C O M P O N E N T S

R I G H T C L I C K T O C H A N G E O P T I O N S

B O D Y

R I G H T C L I C K T O C H A N G E O P T I O N S

O U T P U T O P T I O N

O U T P U T T O O T H E R C O M P O N E N T S

O U T P U T T A B

Grasshopper objects usually can be divided into 5 different parts; Input Tab, Input Option, Body, Output Option, Output Tab. However,depends on object t ypes, some of them have only 3 parts as shown in the figure above.

Input Tab is where an object get input from the output data of others. If you are not sure what kind of data should be connected to aninput t ab, you can check the tool tip by hovering your mouse point on top of the Input Option character r ight next to the input tab. Youcan also access to an input option setting window by clicking right mouse button on the character. If you want to change data processingsetting of an object, right click on the Body. Output Option is pretty same with Input Option, where you can change some output datasetting. Output Tab is where output data stored so we can pass it to other Grasshopper objects.

Object ConnectionTo connect your output data to other Grasshopper objects, click on the white little bubble in Output Tab and drag and drop it onto inputtab(s) of other Grasshopper objects as shown in the figure below.

click & hold mouse button

drag mouse pointrelease

If you want to have multiple connection, hold your shift button while you connecting tabs as shown below.

hold down shift button

• 8/10/2019 Grasshopper Workspace

9/20

Object StatusThere are couple of different object colors which indicate the status of object.

default status without data

object selected

default status with data

error

preview on

preview off

object on

object off (do not process data)

Basic KnowledgeThere are some background knowledge you should under stand before we move on.

Basic Knowledge : Coordination SystemsGrasshopper provides couple of different coordination systems, some of which are famil iar with Rhino users.

A. XYZ (WORLD)

X Y

Z

B. UVW (SURFACE)

U

V

W (SURFACE NORMAL)

(0,0,0)

t = 0.0 t = 12.5

t = 37.5

C. L (CURVE/CURVE ON SURFACE)

L = 0.0 L = 0.25

L = 0.75

L = 1.0

CURVE LENGTH = 1 (UNITIZED)

D. t (CURVE/CURVE ON SURFACE)

t = 50

CURVE LENGTH = 50 (REAL SCALE)

GRASSHOPPER LEARNING MATERIALCH02.5

• 8/10/2019 Grasshopper Workspace

10/20

Basic Knowledge : Data MatchingData matching is one of key concepts of most parametr ic tools. Since a Grasshopper object deal with multiple data from differ ent inputsources, we need to have a clear logic on how to match data.

For example, lets say that we have a Grasshopper object which draws a line out of two input points like below.

We can also supply multiple po

Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Education
Documents
Documents
Documents
Documents
Food
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents
Documents