Filtering X , Y Points


Hi guys It’s probably a simple way but my brain just froze , I wanted to ask how Can I filter the points of the curves according X , y Z points, In other words I want the X points values and Y point values to be separated
Thanks a lot

Amigo @ahmadkhalaf7892 Is this??

1 Like

From the output (list.flatten - var in your case) create a matrix “a”. drag out X and Y using a.X and a.Y

1 Like

Hi Gilberto Thanks for the help
But I have a set of lines that Have X Y points and I want to get the X Points Separately and the Y points Separately


Hi Gideonkarthik, Unfortunately it did not work

Hello,
Place a Curve.PointAtParameter node between your desired lines and point coordinates

Cordially
christian.stan

Amigo @ahmadkhalaf7892 , if I understand correctly you need to decompose your line in points, and then the desired points in their component X (Point.X), Y (Point.Y) and Z (Point.Z), are you sure they are not the nodes you need?

2 Likes


please try this

3 Likes

Thanks a lot Gilberto

@christian.stan ,

like this?

1 Like

Thanks Man this also works

2 Likes

tip: Try to avoid flatten command unless there are a lot of nested lists.
Thanks.

Hi Andreas Thanks for the help, A solution was provided by Gilberto

1 Like

Thanks Christian

1 Like

@ahmadkhalaf7892 More specific maybe!!

Will do Thanks a lot,but may I ask why ? it’s just to increase my knowledge not more

in your case, flatten command output (var ) is preventing you to access the ‘a’ matrix [refer my first reply].
In order to control this situation, suppose a list has minimum nested lists, better to split them and handle individually to extract the necessary outputs and later rejoin them with the unnested lists.

Appreciate the advice Thanks a lot

1 Like