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.

Sorted geometry to data tree

Sorted geometry to data tree

- Welcome, I have my exercise file open already. This is the second of two videos focused on sorting input geometry from Rhino onto a data tree in Grasshopper. So I've already taken my input geometry and I've sorted it into two categories, the vertical panels within this sort of waffle-y structure, and the horizontal panels within this waffle-y structure. Now, typically if I have a data tree and I want to be able find specific panels within something like this, I want to have these panels sorted in order. So maybe I'll go from the lowest to the highest and from the left to the right. So how can I sort those? If I go to Surface, I can get the center of each surface, and then I can use the location of those centers to sort. So if I go to Vector, take those centroids, and these vertical panels, I'm going to sort them along the x-axis. So I'm going to use the x value to sort. So I'll go to Sets, Sort List, plug my x value…

Contents