Maybe this helps (see attached gh file), the main issue in your definition was lack of control over lists and data trees, I’ve tried to explain this a bit with comments in the gh file.
Impressive, thank you so much. This is clearly next level for me.
I understand that you rebuild the plan for each curves, switching from ZX world to XZ world.
Then you sorted the list with the Y values , can i ask you why please? Is it to recover the curves and the planes after changing the planes orientations?
The following regarding the grid layout and the tags is really smart.
Yes, I’ve sorted the curves according to Y values just to be sure they are all organized correctly and the way I intended (since I wasn’t rebuilding the script form the start) and Y direction seemed as the most logical order here. I have reconstructed the planes also just make it easier for me to create the layout exactly the way I wanted.
You can change the orientation of planes as well as the proportion of grid, if you need something different