The Grasshopper library contains its own types and functions that are used in Grasshopper, including DataTrees. In this video, learn how to use these data types in Python, accessing and creating Data Trees.
- [Instructor] Besides adding external libraries…like Excel to our path and script,…there are also many libraries ready to import…like Rhino comma, which assists with working…with Grasshopper in Python.…One of these is the Grasshopper library,…which provides classes and functions…that help us to work with Grasshopper objects,…such as DataTrees.…In our last exercise,…we imported a list of points from Excel.…However, these came in a single list…not broken into separate branches.…By doing this, it might help us to use them…in an ordered way.…
You'll notice that I placed a Point component…which includes the internalized points…from the last exercise, just in case you didn't have Excel.…Let's go ahead and place a new Python component.…And we'll change the input to points,…which will be List Access.…And Type hint to Point3D.…Then let's change the output to tree.…
Then let's plug our points into the Python component,…and open it up to create a DataTree.…First let's remove the rhinoscriptsyntax import…as we won't be needing it in this video.…
- 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.