Align UVs of specific panels

I did Generate grid for some surfaces to divide into panels. But after the panels were formed the UV directions of a few panels were odd and in opposite direction of others. See Image.


UV script.gh (124.6 KB)

UV script Edited V0.gh (133.6 KB)
Made this into a cluster.

1 Like

Thank you so much, that was great help. It took me some time to understand but got it.
Thanks a million ! That taught me a lot.