Skip to main content
Known Participant
June 6, 2026
Question

Auto merge overlaps vector layers?

  • June 6, 2026
  • 0 replies
  • 13 views

I'm working with Photoshop 22.0.0 and I have a PSD containing more than 1000 dividual shape layers (vector layers). Many of these shapes overlap each other. For example:

  •  

     

Even if Shape 1 does not directly overlap Shape 4, they should all be considered part of the same connected group. So I need a Photoshop script that works as follows:

  1. When I selects a single Shape Layer, the script will find all Shape Layers that overlap the selected layer.

  2. All layers in that connected group should be merged into a single Shape Layer. Layers that are not connected to the group must remain untouched.

  3. The final merged shape should use the appearance (fill/stroke/style) of the originally selected Shape Layer.

Thank you for your all help!