Script to generate numbered layers and assign random colors....?

Layer numbers could start with 1 or a selected numbers and then just add 1 to each additional layer. Example 1, 2, 3 all the way up to 1000 each would have a random color. I have been using a template file with around 600 layers I set up by hand but now my project will have over 1000 different layers.

Here is a quick grasshopper script to help you out (Rhino 8)


R8-Create-Layers.gh (10.9 KB)

2 Likes

I have a simple numbered layer generator:
AddNumberedLayers.py (1.3 KB)

It does not do random colors though. That could be added, however I have found that truly random colors are often too dark for my liking. So I have a whole bunch of scripts to generate various kinds of random colors to selected layers. Below are a few. If you see one that generates colors you like, let me know and i can incorporate it into the numbered layer generator.

RandomSaturatedColorSelLayersNew2.py (938 Bytes)
RandomLightColorSelLayersNew2.py (1.0 KB)
RandomColorAllLayers.py (409 Bytes)

3 Likes

Mitch

Thank you again…No need to combine them, it’s no problem to just run 2 scripts. This will save me a ton of time.

Brian

I have not upgraded to R8 and I have no clue how to run a grasshopper script, that said I thank you and McNeel anyway. Most companies would just ignore a post like this.

Brian

1 Like