Automating Grasshopper Part 3

Course or Collection: 
Video Duration: 
14 minutes
Zach Downey

In this tutorial we create a whole bunch of Tower options by automating a Grasshopper definition using Python. This is an extremely useful way to view a large matrix of design options quickly. You no longer have to move sliders and bake manually. We can now bake all the options at once and view them later. With just a little bit of setup we can really unleash the power of parametric design (I know that sounds cheesy, but this IS really cool). Enjoy.

#Automating A Tower Massing
import rhinoscriptsyntax as rs
import Rhino
#Load Grasshopper Plugin as gh
gh = Rhino.RhinoApp.GetPlugInObject("Grasshopper")
for i in range(1,6,1):
    #BaseSize Slider
    for j in range(0,11,1):
        #Rotation Slider
        for k in range(3,7,1):
            #NumberOfSides Slider
            baked = gh.BakeDataInObject("72628cf1-020e-425d-9746-6f323f8882f8")
            transVect = (12*i, 12*j, 12*(k-2))
Tutorial Files: 


Please rate this tutorial below. Thanks.

Average: 4.9 (12 votes)


Hi, I'd like to ask something. Is it possible to automate even more process? I have a shoebox concert hall with a stage and I want to automate it along with the other surface. Thanks!

Want to Contribute?

Want to be an author? Drop us a line here we'd love to have you.

Already have a video you'd like to post? Send us a link and we'll get you going.