The Grasshopper Components library contains all of the Grasshopper components that are available when using Grasshopper. In this video, learn how to import and call Grasshopper components directly in Python scripts.
- [Instructor] All the points from the last video…are now sorted into rows and added to tree branches…as you can see in the start Exercise File for this video.…Let's have a look at accessing this data tree…in a new Python component…and while doing this, we'll look at using Grasshopper…components to create geometry.…Go ahead and let's place…a new Python component onto the canvas.…We're going to feed the tree of points…from the last video into this component.…So let's change the input parameter to points.…
And we'll change the access to tree access…and the type hint to point 3D.…And go ahead to plug the tree into our new points input.…And double click to open it up.…To start, let's remove the Rhino scripts syntax import…and let's replace it with the Grasshopper component library…which will allow code Grasshopper components…as if they were functions within our script.…We can then use them to create geometry from the points.…
The components are within the GH Python lib library…so let's import ghpythonlib…and we just want the components name space.…
- 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
Skill Level Intermediate
1. Working with Python
2. Python Basics
3. Importing Modules and Libraries
4. Grasshopper Workflows
Next steps3m 53s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.