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

Sorting

From the course: Grasshopper and Rhino: Python Scripting

Start my 1-month free trial

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…

Contents