Automating Grasshopper Part 1

Course or Collection: 
Software: 
Video Duration: 
5 minutes
Author: 
Zach Downey

In this tutorial we do some initial setup to load the Grasshopper plugin into Rhinoscript. We also use a python script from Steve Baer over at McNeel to list out the grasshopper methods available to Rhinoscript.  

import rhinoscriptsyntax as rs
import Rhino
import time
 
 
#Load Grasshopper plugin as gh
gh = Rhino.RhinoApp.GetPlugInObject("Grasshopper")
 
### This is used to print the method names ###
for func in dir(gh):
    if not func.startswith('_'): print func

Rating

Please rate this tutorial below. Thanks.

5
Average: 4.9 (17 votes)

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.

:)