# Grasshopper python Layer filter

**URL:** <https://discourse.mcneel.com/t/grasshopper-python-layer-filter/109118>\
**Category:** Grasshopper\
**Created:** [September 22, 2020, 10:52pm UTC](https://discourse.mcneel.com/t/grasshopper-python-layer-filter/109118 "2020-09-22T22:52:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [September 23, 2020, 12:08am UTC](https://discourse.mcneel.com/t/grasshopper-python-layer-filter/109118/2 "2020-09-23T00:08:39Z")

</div>

> [@martinsiegrist](#):
>
> Is it somehow possible to filter layers in the Layer Panel with a python script?

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

> [@'Bake to Layer' component with 'M' (Material) input?](https://discourse.mcneel.com/t/bake-to-layer-component-with-m-material-input/94820/21):
>
> Updated. Now handles groups. Open source Python. [mMaterial\_2020Jan30a.gh](https://discourse.mcneel.com/uploads/short-url/tT3jO02lTlkRmRzBJCzuNxWz0f6.gh) (29.5 KB) [mMaterial\_bake\_to\_layer\_2020Jan30a.gh](https://discourse.mcneel.com/uploads/short-url/y7Oqz7ADCwfvRIuaZkxLio55ltj.gh) (39.5 KB) [STEP1\_mMaterial\_bake\_to\_layer\_2020Jan30a.gh](https://discourse.mcneel.com/uploads/short-url/rKXhgsDuiVzltPQk6yIx7qWm6T0.gh) (40.0 KB) [STEP2\_mMaterial\_bake\_to\_layer\_2020Jan30a.gh](https://discourse.mcneel.com/uploads/short-url/n6jyaPrIayEJ5Z3hSZOEQxUr1Sc.gh) (16.1 KB) [[Bake To Layer in Rhino 6 Grasshopper] ](https://www.youtube.com/watch?v=4s4vashEFk0) NOTE: The ~5 second benchmark in this video is more than three times longer than the same operation takes when not running the video capture software…? Wh…

 ![mMaterial_bake_to_layer_pieces_2020Jan30a](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/9/4/94300ae60a59a5c183f6c3c07336e90bb2f5b919.png)

[![](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/6/b/6b5ba3cb7c5a0a2eca699664b130af1f5d2b4046.jpeg "Bake To Layer in Rhino 6 Grasshopper") ](https://www.youtube.com/watch?v=4s4vashEFk0)

---

_[View the full topic](https://discourse.mcneel.com/t/grasshopper-python-layer-filter/109118)._
