Grasshopper python Layer filter

Is it somehow possible to filter layers in the Layer Panel with a python script?

My file has a few hundred layers and it would be nice to be able to reduce the number of layers displayed in the Layer Panel and reduce scrolling too…

These Python bits have no effect on the Layers panel but make it easier to work with dozens of layers:


Thanks but I’m not looking for a solution to bake anything. I have that already.

hi Martin

Did you find the solution to filter the layers in the panel?
I’m also looking for a way to do this.
If it can save me searching for hours…
thanks in advance

Did you try this?

Yes of course, in fact I wanted to do it by programming, but I couldn’t find it, so I adopted another method

@dale do we have means to operate the layer filter through Rhinocommon?

Hey @Gijs, no not at this time.

– Dale