# Package Editor: Layer Filtering

**URL:** <https://librepcb.discourse.group/t/package-editor-layer-filtering/108>\
**Category:** Improvement Ideas\
**Created:** [July 13, 2019, 10:26pm UTC](https://librepcb.discourse.group/t/package-editor-layer-filtering/108 "2019-07-13T22:26:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [July 13, 2019, 10:26pm UTC](https://librepcb.discourse.group/t/package-editor-layer-filtering/108/1 "2019-07-13T22:26:46Z")

</div>

In the package editor it’s currently not possible to preview how the part looks on a specific layer.

I’d need a way to view only top/bottom layers. Ideally I could also turn on/off all layers separately, e.g. to view only copper or only documentation layers.

Can we put the layer selector in the package editor too?

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [July 16, 2019, 9:45pm UTC](https://librepcb.discourse.group/t/package-editor-layer-filtering/108/2 "2019-07-16T21:45:22Z")

</div>

> [@dbrgn](#):
>
> Can we put the layer selector in the package editor too?

Yes, that should be possible. I just wonder how it should be integrated into the library editor. In the board editor it is integrated as a dock widget, stacked with other dock widgets. But in the library editor we don’t have dock widgets, but a fixed region used for the metadata widgets. Adding a dock widget would probably be too crowded and might look a bit strange ☹

---

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [July 27, 2019, 1:21pm UTC](https://librepcb.discourse.group/t/package-editor-layer-filtering/108/3 "2019-07-27T13:21:47Z")

</div>

I think a dock widget (“Metadata” and “Layers”) would be fine.

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [July 27, 2019, 9:57pm UTC](https://librepcb.discourse.group/t/package-editor-layer-filtering/108/4 "2019-07-27T21:57:25Z")

</div>

Hmm yeah I think it would require some refactoring to convert the “Metadata” widget to a dock widget (dock widgets are window-global, but the metadata is separate for each tab, so it must be replaced when switching between the tabs). At least this would automatically fix [https://github.com/LibrePCB/LibrePCB/issues/359](https://github.com/LibrePCB/LibrePCB/issues/359) 😉

Feel free to open an issue for this task 🙂

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [September 8, 2019, 10:13pm UTC](https://librepcb.discourse.group/t/package-editor-layer-filtering/108/5 "2019-09-08T22:13:29Z")

</div>

Issue opened:

> <https://github.com/LibrePCB/LibrePCB/issues/514>
