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.
Sorting
- [Instructor] In the last exercise, we took a large surface and split it up into lots of little surfaces. We didn't, however, check if those surfaces were ordered. We left off with a list item node to check if we had individual surfaces. Let's plug a slider into this to see how the order appears. So, let's double-click the left mouse button on the canvas and write 20, Enter, and plug this into the I parameter. And then select that to highlight its output, and let's just have a look through the order. So it appears they're ordered in columns, but not exactly along the direction of the surface. Let's try sorting these panels by their position in the x-axis and also along the y-axis, so that they're arranged in rows. So let's go ahead, and we'll place a new Python component, and remove one of the inputs, and we'll change the other one to panels, which will be List Access, and the type hint will be a type of surface. Then go ahead and plug these surfaces into the panel's input, and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Evaluating surfaces9m 45s
-
(Locked)
Creating panels5m 13s
-
(Locked)
Splitting11m 35s
-
(Locked)
Sorting8m 49s
-
(Locked)
Attractors10m 2s
-
(Locked)
Transforming11m 49s
-
(Locked)
Lofting9m 46s
-
(Locked)
Analysis12m 35s
-
(Locked)
Accessing the Rhino document2m 33s
-
(Locked)
Baking form13m 56s
-
(Locked)
Adding text9m 3s
-
(Locked)
Animating form6m 7s
-
(Locked)
Animating renders8m 22s
-
(Locked)
-