From the course: Grasshopper: Tips, Tricks, and Techniques

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Data trees and scripting

Data trees and scripting

- [Instructor] Welcome, I have my exercise file open already. In this video, I want to focus on the challenges that arise when you incorporate scripted components into a Grasshopper script that is utilizing multi-level data trees. So I have a piece of a script from a previous video. And it's outputting a structured data tree with some horizontal planes and vertical planes through this object. So it's not super-important what the geometry is. Now we are adding the scripted component. The scripted component is just baking the geometry. So if I double-click on the toggle, it adds that geometry to Rhino. If I look inside, it's really simple. All it's doing is saying if the boolean is true, if ACT and if the object is not null, so if there is something here, you create some attributes, add a layer index to the attributes, and then add the object to Rhino with those attributes. So let's look at how we can adjust this scripted…

Contents