From the course: Grasshopper Essential Training (2017)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Python scripting

Python scripting

From the course: Grasshopper Essential Training (2017)

Start my 1-month free trial

Python scripting

- [Instructor] In the last video we looked at installing the GH Python component which allows us to script in the Python language right inside of Grasshopper. So in this video I want to just kind of scratch the surface of some of the powerful things we get access to when we start combining scripting with Grasshopper. So in Grasshopper I've just got an empty file open and in Rhino I've got the file simple-fractle.3dm open and I just want to give you a little bit of an overview of what we're going for here. Now we talked in the algorithmic thinking chapter about iteration and recursion and why some of those techniques are difficult if not impossible with Grasshopper as it comes right out of the box. So this is what we're looking to build using a Python script. So I have this very simple fractal pattern here that's kind of self repeating, so I start with a line, I make a line one unit above it that is half the length and centered on its parent and I do that again and again and again and…

Contents