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 as lists

Data trees as lists

- I have my exercise file open already, in this video I want to talk about data trees and specifically how the data tree structure is really no more than list. It's a map, it's mapping the index of the item onto a specific location in this abstraction which is the data tree. And we can eliminate data trees, we can flatten lists, and then reapply them at will. This is a powerful realization because it let's us do things to the data if we want to flatten something for one purpose and then reinstate that data tree structure later on, that's easy to do. And we can also use the data tree pass as a surrogate for the geometry itself for some operations. So, just to see an example of this, here I have a bunch of (mumbles) that have been morphed onto a surface using (mumbles) tools. If I copy this component, this component I'm going to flatten instead of grafting. So I have a completely flat list. Then if I want to graft this, you…

Contents