Relational and logical operators allow the computer to compare values to make decisions. Learn about the operators >,<,==,!= to control the flow of our scripts.
- [Instructor] In previous videos,…we have used the equal to symbol…to check the equality of two values.…This is known as a Comparison Operator.…Comparison Operators are useful for comparing…one value to another.…For example, if we wanted to compare…the volume of two spheres, or the length of two lines,…we would do so using a Comparison Operator.…Let's have a look at some of the…other Comparison Operators we can use.…Before we do, however,…let's have a quick look at the boolean data type,…which I'm sure you've come across in Grasshopper.…
This simply contains a point driven by three sliders.…For now, let's place a new Python component…onto our canvas.…And we'll double-click to open it up.…A boolean is either one of two states,…true or false.…Think of this like a switch.…The switch is either on, true,…or off, false.…To create a boolean, we simply assign to a variable…true or false with a capitalized letter.…
For example, let's create two variables, T and F,…and we'll assign to these the two booleans,…True and False, respectively.…
- Python components
- Accessing the Rhino API
- Python programming basics
- Importing modules and libraries
- Grasshopper workflows
- Evaluating surfaces
- Creating and splitting surfaces
- Transforming geometry
- Baking geometry from Python into Rhino
- Adding text objects
- Exporting rendered frames for animation
Skill Level Intermediate
1. Working with Python
2. Python Basics
3. Importing Modules and Libraries
4. Grasshopper Workflows
Next steps3m 53s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.