First thing you may want to reduce the number of colours or you will have nearly one layer for every sunshade.
to create layers and bake I would use the Human addon
Here is my version with Elefront !
As Guido said, you have 118 different colors, so I guessed you wanted 118 layers.
You didn’t internalize your data, so I created arbitrary rectangle, but just plug back your curve and it be fine !
Is this what you were looking for?
It would really help if you internalized your geometry. I used a circle but needed a radius of 16,000 units (a diameter of 32K!) to properly see your model. Are you working in millimeters?
I added a ‘reduce colors’ group (purple) that rounds your random rotation values to specific intervals defined by Range.
It’s possible to trigger a bug in this code but easy to avoid it. I think it goes like this:
click the ‘Bake’ button - this creates layers as needed for baking geometry.
manually select and delete all the layers in the ‘Layers’ panel.
click the ‘Bake’ button again - ERROR! This alert pops up for every single piece of geometry in the list (150 times!!!)
I’m still too weary of Rhino API scripting to bother figuring it out just yet. Maybe someday, unless McNeel decides before then to build this functionality into GH, where it rightfully belongs. The ‘Bake’ and ‘DELETE All’ buttons can be used repeatedly without any problem.
Good advice but I didn’t see internalized geometry in your model?