From the course: Grasshopper and Rhino: Python Scripting

Unlock the full course today

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

Grasshopper components

Grasshopper components

From the course: Grasshopper and Rhino: Python Scripting

Start my 1-month free trial

Grasshopper components

- [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…

Contents