Reorder curve index to match plane index order

I have an issue which relates to reordering geometry. I’ve exhausted everything I can find on the web/this forum but to no avail. I would greatly appreciate it if someone with more advanced skills could help me

I have some 285 curves which are in random order

I have another set of geometry made up of 301 planes which are positioned consequentially in an arc from 0-300. 0 being the first point on the left 150 in the middle and 301 on the rightmost end.

I would like to keep the curves in the same position but remap their index so it moves from left to right 0-285.

The curves are placed on the planes with the correct index so I am making the assumption there is some way to cross-reference this.

Note: The planes will stay the same across all my uses cases but the number of curves and their geometry will change.

Thank you. :grinning:


Reorder curves to match plane .gh (59.2 KB)

I used the planes as nothing more that points, interpolated them, then used Sort Along Curve:


Reorder curves_2023Jun14a.gh (69.9 KB)

2 Likes

Joseph, I can’t thank you enough. I really appreciate you helping me with this. Have a great day.