WISH : set block object color to "By Layer"

I’d like to edit a bunch of block definitions through Grasshopper, and namely, I want to set back all the geometry to be of “By Layer” color instead of “By Material” or custom color as I received them.

I’m fumbling miserably with the ever so confusing new components from the “Rhino” tab, but going absolutely nowhere…

Is there a cheat code or something ?

Here’s how I set up blocks:

block_nested_material.gh (29.0 KB)
block_nested_material.3dm (299.7 KB)

1 Like

Thanks Martin,

This is useful.
Moreover, as I was curious to see the value in the “Dc” input of the display properties, I found out there was a value list including the “By Layer” ; should have thought of that.

Yet somehow, it seems so natural that the text “By Layer” should also work.

So here’s my wish : make the “Display Properties” smart enough to understand the key works “By Layer, etc…”.
I just don’t like it when values are internalized.

Remember people, Grasshopper was originally called “Explicit history”, not “Hidden stuff inside components that do stuff”.

I set my block material to parent.

OK, that’s nice

Yes I think this is an issue with a few components. Some things works when the input is coming from a component but fails when the text string is in a panel.

I believe one reason why this many inputs are internalised is because they’re referenced from Rhino. One way to make it more visible is with a panel after the component.

Well, I don’t care so much about the reason behind.
I just think it’s something that could be improved, and I say it.

1 Like