Hi, I’m new to Rhino/GH and I am impressed by how easy its been to do some pretty complicated things in GH by learning from all of you on line, so thank you. I have one question that has me stumped.
I have a GH definition that creates a child layer for whatever layer is active at the time, and puts some calculated geometry on it. That part works fine. I would like to set the color of that child layer to whatever the color of the parent (current) layer is, which might be different every time you do this with a new layer. I have found a way to list the layers and colors for ALL the layers, but I haven’t found a way to get the color for one particular layer and send that color to the bake component for my child-layer geometry. Any ideas?
I suppose you are using Elefront or Human plug in?
Human can list all layers active in current Rhino document.
You can the just use List Item to select the layer you want together with its color.
Or you could also input the name of the layer you want, in this case ‘A’ and have that find the index to input into the List Item for you.