Grasshopper and Rhino: Python Scripting
5h 4mBeginner2018-08-08
Authors

Jeremy Graham
Registered Architect
Course details
Grasshopper allows designers to perform graphical, component-based algorithmic modeling in Rhino. Python extends this functionality, allowing you to create custom scripts for Grasshopper and perform more complex workflows by working directly with the Rhino API. This course introduces the Python programming language to designers who want to do more with Grasshopper. Learn the basics of Python, including variables, data types, conditionals, and loops, and discover how to import additional libraries to extend Grasshopper. Instructor and computational design expert Jeremy Graham then introduces workflows for lofting, sorting, and baking geometry in Grasshopper—using powerful and fast Python scripts that push the boundaries of this visual programming tool.
Learning objectives
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
Learning objectives
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
Skills covered
GrasshopperRhinoRobert McNeel & AssociatesPythonProgramming LanguagesOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - Exercise files
1. Working with Python
- 04 - Python component basics
- 05 - What is OOP
- 06 - Rhinoscriptsyntax
- 07 - RhinoCommon
2. Python Basics
- 08 - Variables
- 09 - Numbers
- 10 - Strings
- 11 - Lists and tuples
- 12 - Comparing with operators
- 13 - Making decisions with conditionals
- 14 - Comparing Booleans
- 15 - For loop
- 16 - While loop
- 17 - Nested loops
- 18 - Defining custom functions
3. Importing Modules and Libraries
- 19 - Modules
- 20 - IronPython and Python
- 21 - Importing libraries
- 22 - Grasshopper library
- 23 - Grasshopper components
- 24 - Grasshopper Parallel
- 25 - Creating and saving modules
4. Grasshopper Workflows
- 26 - Evaluating surfaces
- 27 - Creating panels
- 28 - Splitting
- 29 - Sorting
- 30 - Attractors
- 31 - Transforming
- 32 - Lofting
- 33 - Analysis
- 34 - Accessing the Rhino document
- 35 - Baking form
- 36 - Adding text
- 37 - Animating form
- 38 - Animating renders
Conclusion
- 39 - Next steps