# Simplifying layer structure by merging

**URL:** <https://discourse.mcneel.com/t/simplifying-layer-structure-by-merging/89465>\
**Category:** Scripting\
**Tags:** blocks, layers\
**Created:** [September 26, 2019, 5:24pm UTC](https://discourse.mcneel.com/t/simplifying-layer-structure-by-merging/89465 "2019-09-26T17:24:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Karim\_tabbara](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/karim_tabbara/32/764834_2.png) [@Karim\_tabbara](https://discourse.mcneel.com/u/Karim_tabbara)\
**Post date:** [January 3, 2024, 12:53am UTC](https://discourse.mcneel.com/t/simplifying-layer-structure-by-merging/89465/2 "2024-01-03T00:53:22Z")

</div>

> [@spb](#):
>
> A MergeLayer command has been requested a few of times in this forum

Hi

I haven’t tried yet your script  
buy used mine and some of McNeels to make my one

> [@Merge Layers](https://discourse.mcneel.com/t/merge-layers/86322/7):
>
> Hi Pascal and all ones looking for a merge layer that works with blocks I finally managed to script a “full” merge layers from both or your scripts Script Process Choose Source layers that will be merged Choose a unique target layer All Source Layers are merged to target All Source Layers in blocs and nested blocks are merged to target Prompt “Yes No” to Purge empty layers I would LOVE to add an option for a complete layer deletion, even in nested blocks… Enjoy (and help if possible) Bes…

I’ll check yours soon

Thanks

---

_[View the full topic](https://discourse.mcneel.com/t/simplifying-layer-structure-by-merging/89465)._
