How to get points only on a certain axis?

Hi,

I am trying to get points of a grid in only a certain direction, like the X axis or Y axis. How can i make two different lists from a grid where the points are grouped by directions?

Example:
On this image i want to get those points as groups so i have all points sorted from axis on each grid line. (X axis has 3 groups and Y axis has 5 groups)

image

Why don’t you use SqGrid or RecGrid component? Their output points are already grouped vertically and with Flip Matrix, you can covert the output points to horizontal order.

1 Like

Thanks Kim! I was already trying that and with your info it works! By the way do you know how i can make a slider with a max value given from the extent in X or Y? Is there any way to give a slider a max value that is not filled in by the user but is generated by a other value, like the Extent X or Y?

Damn @HS_Kim, you’re fast. :wink:

Here’s another approach that includes selecting individual columns or rows:

grid_sorting_01.gh (10.4 KB)

2 Likes

You mean like this?

Thats not what i mean, but i found it on the solution on the forum. Its with the Set slider properties. With that i can give a max for the slider while the max value is external.