From the course: Learning Grasshopper
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
How to control lists with logic and dispatch in Grasshopper
From the course: Learning Grasshopper
How to control lists with logic and dispatch in Grasshopper
- [Narrator] In this video, we'll look at using conditional statement output along with the dispatch component, to control data flow in a Grasshopper definition. In addition to mathematical functions, Grasshopper can also evaluate conditional statements. These can be thought of simply as yes or no questions. For example, is the temperature below freezing. You might be familiar with the concept of if-then-else statements. Conditionals are the backbone of this type of logic. For example, if the temperature's below freezing then put on a coat or else stay inside. Let's take a look at a simple conditional statement in Grasshopper, that measures the value of a number slider. So in our example file, we're using the Evaluate component and we've attached an expression of x>5. We're feeding that with a floating point number slider into the x input of evaluate. And rather than making a numerical output this conditional expression…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
How to use data matching in Grasshopper5m 13s
-
(Locked)
How to use mathematical operator components in Grasshopper2m 36s
-
(Locked)
How to use mathematical constant components in Grasshopper1m 56s
-
(Locked)
How to use comparator components in Grasshopper4m 21s
-
(Locked)
How to use Series and Range components in Grasshopper4m 34s
-
(Locked)
How to generate random and Fibonacci sequences in Grasshopper4m 55s
-
(Locked)
How to make custom explicit math functions in Grasshopper4m 47s
-
(Locked)
How to make custom parametric math functions in Grasshopper5m 26s
-
(Locked)
How to control lists with logic and dispatch in Grasshopper4m 33s
-
(Locked)
How to control data flow with logic gates in Grasshopper3m 24s
-
(Locked)
How to construct vectors in Grasshopper4m 46s
-
(Locked)
How to move geometry with vectors in Grasshopper5m 25s
-
(Locked)
How to analyze vectors in Grasshopper3m 22s
-
-
-
-
-
-