Re-organizing tree branches

I’ve got a data set of curves coming out of a component that results in the following structure:
{0;0}
Closed Curve A
{0;1}
Closed Curve B
{1;0}
Closed Curve C
{1;1}
Closed Curve D

What I want to do is to group the x;0 objects into a branch and the x;1 objects into a branch so that my resulting data set comes out like:

{0;0}
Closed Curve A
Closed Curve C
{0;1}
Closed Curve B
Closed Curve D

How would I accomplish this? I have limited experience with the Path Mapper but I’m guessing that might be the correct component to achieve this? Thank for any insight you can share with me!

My bad, as usual read too quickly.

Split tree then entwine would work

https://www.grasshopper3d.com/forum/topics/datatree-selection-rules?

2 Likes

PShift (Shift Paths)

Oh… I also read too quickly…

P.S. PShift followed by Flip Matrix?

1 Like

Path mapper with the following:
{A;B}->{0;B}

2 Likes