In this course, David Tracy will teach you how to use the Python programming language with Rhino to automate tasks, create complex forms, and simulate physical phenomena. This course will serve as a gentle introduction to programming to unlock capabilities for generative computational design with Rhino, Python, and Grasshopper.
First, you will be introduced to the core concepts of using Python in Rhino, such as drawing shapes with code, transformation, and variables. Then you will learn how to use classes and object oriented programming. Finally, you will learn how to integrate Grasshopper into your Python and Rhino workflow.
When we’re done, you will understand the core concepts of programming with Python, be able to author your own scripts, and create custom components in Grasshopper.
Transcript summary — log in to access this content in full.
For instance, if I open this sample script called draw parametric curve, there are like 52 lines of code here, but I can just if I want to see what this does I can start debugging it, and it's going to prompt me for parameter value T, and I'll accept the default. When you're prompted with messages and you see these two carat brackets, the value in between those two brackets is the default, so if I just hit enter or space it's going to accept zero as the default, and now it's prompting me for the maximum parameter value, so I'm just going to hit enter, again to accept the default, and then it's going to prompt me for the number of points, so I'm going to drop this down to 25. And so what that did was it generated this spiral curve so if I turn on the points here, you'll see I have about 25 points.
Log in to access files
From the course:
Introduction To Python In Rhino
Duration: 3h 23m
Author: David Tracy