Hi @AndyPayne I have a problem hiding layers with the Grasshopper Rhino Layer component.
Child layers seem to be handled inconsistently. Please take a look at my example.
hide_layers_problem.gh (26.2 KB)
Hi @AndyPayne I have a problem hiding layers with the Grasshopper Rhino Layer component.
Child layers seem to be handled inconsistently. Please take a look at my example.
hide_layers_problem.gh (26.2 KB)
hi @martinsiegrist thanks for this sample
RH-76977 Grasshopper hide layers issues with child layers
I just tested the file above and I see these orange groups.
What are the groups and disabled components inside for?
Hmm ok, no more value output…
Hi Martin. You’re fast! Yes, we had a major rethink/rewrite regarding how the filtering rules/components work. If you’re using an older definition that had included these components, you’ll likely need to replace these with their newer counterparts. I plan to write an updated post about these changes and how the new components work, later tomorrow.
Thanks Andy. Tuesday nights are always a little bit like christmas currently
There are also a few improvements in the User Text component as well
I need to go see what these improvements are!
EDIT:
Awesome!
Thank you, I literally just refactored this functionality in my code today but I’m glad it’s native now! This is great!
@michaelvollrath @martinsiegrist Please see this updated post about how the new Filtering components work.
Already reading through it! Thanks!
Hi @martinsiegrist,
This is fixed on the next RC, please give it a try.
I will asap
This is confusing. The lights never go off completely on child layers.
That is correct… However, if you use the “Model Layer” component, you can decompose the layers and see that the visibility setting is indeed set to off (or hidden). The “half-on/off” is a quirk of the Rhino Layers panel. Perhaps @dale could provide more insight here.
Hi @martinsiegrist,
A parent layer controls the visibility of it’s children.
If you turn off a parent layer, it’s children will show a half-lit lightbulb that indicates the child is off but will be turned back on then when the parent is turned back on.
– Dale
That’s where I don’t agree.
I have a python script to switch off a child layer completely and I expected the Grasshopper Rhino component to work the same way.
Is there a way to change between half off and full off with the Grasshopper Rhino components?
The single click on the light bulb of a switched off parent layer is certainly an efficient way to turn on many child layers but this is only a valid point in Rhino where otherwise a few more clicks would be needed.
In Grasshopper the layers are filtered with a certain criteria and I think it would be better if child layers could be turned off completely and the parent layer does never turn on a child layer.
Well… To be fair, the child layers are “off”… They’re just showing half on/off because they’re still controlled by the parent layers. But, the visibility of the child layer is off when set via grasshopper. I’ll have to discuss this with Kike and Dale and see if turning the children to “full off” is preferable/doable.
Yes it’s off but I don’t like the fact that it is turned back on by the parent.
Clicking the lamp on a child layer in Rhino with its parent layer visible makes the lamp turn off completely.
The same thing can be done with a python script.
Grasshopper Rhino components are different. When the parent is on, baking the layer with the Hidden input set to False makes the lamp go half off only.
This is not consistent at all.
The only way to change a light bulb in Rhino from on to half off is by first turning off the parent layer.
I’ve added two python scripts in my test file:
hide_layers_problem.gh (32.6 KB)
Ok. I have filed a bug issue on YT regarding this issue. We do plan to get this tuned up as soon as we can, but it might not be before Rhino 8 ships.
Thanks Andy.