Hi,
I’m using a fairly repetitive script to build a structure along a line. As I want each segment of the polyline to display differently, I end up doing a lot of copy paste. My script worked fine, until I realized it doesn’t work at all when I change the segment count.
when I remove the last segment this happens…

I guess it has to do with all the ‘‘list item’’ i used… How could I re-write this script more efficiently without losing the ability to parameter each section independently AND use polylines of varying segment count?
Structure4.gh (240.7 KB)
Structure.3dm (53.8 KB)
Thank you very much,
Florence