Forum

RhinoScript – create a new layer and apply a random colour

I work a lot in Rhino, but never touched the scripting subject. So maybe there is an easy soloution, I just couldn´t find it....

I usualy have huge Datasets that I want to export for rendering, and therefore have to put hundrets of objects on different layers and then give the each layer a different colour, so that the renderer identifies different objects.

is there a way to write a scrit for that?

perfect would be:

I pick an object and the script copies the object to a new folder and selects a random colour for the layer. done.