Layer Color for a Sublayer

How I can have a different color for each sublayer using Grasshopper component when baked in rhino?

For example:
Mainlayer::Sublayer1
Mainlayer::Sublayer2
Mainlayer::Sublayer3

Mainlayer color is white
Sublayer1 color is red
Sublayer2 color is green
Sublayer3 color is blue

Hi @Trevor_Luna

You can use Human for that. Or Elefront
layers.gh (9.5 KB)

Thanks for the response.
I tried it, it produces different colors to the object but I want to bake also the sublayer with its color in rhino.

There are no sublayer baked in rhino.

hi @Trevor_Luna

right click the component and set to “Layer Full Path”

Hi @Trevor_Luna,

In Rhino 8 you can do something like this.

2 Likes

@Erik_Beeren

Even if the component is set to Layer Full Path, the script is still not working. There is an error occuring “Specified Layer not found” which I believe that the layer should be set first in rhino before using this script (correct me if im wrong), but I need the script also to set the layer from the Grasshopper script itself.

Yes, this is the output I need. Thank you.

Also, what component is the one with push content? (Sorry, Im new in using grasshopper).

Sorry @Trevor_Luna

I forgot one component. :sweat_smile:


layers.gh (10.0 KB)

That’s the native component to bake content in Rhino 8 Grasshopper.