Merge Shapes Using Path Operations in After Effects

Merging shapes in Adobe After Effects allows you to combine, subtract, intersect, or exclude multiple vector paths within a single shape layer without rasterizing your artwork. By using the built-in "Merge Paths" operator, you can perform non-destructive Boolean operations to create complex graphics, custom masks, and dynamic motion assets. This guide outlines the exact steps to add and configure Merge Paths in your timeline.

How to Add Merge Paths to a Shape Layer

  1. Create or Open a Shape Layer: Ensure you have a shape layer containing at least two distinct shapes (e.g., two rectangles, or an ellipse and a star) within the same layer.
  2. Expand the Layer Contents: Click the arrow next to the shape layer name in your Timeline panel to reveal the Contents section.
  3. Open the Add Menu: Next to the word Contents, locate the Add: button (the small circle with an arrow pointing right).
  4. Select Merge Paths: Click Add: and select Merge Paths from the pop-up list. A new property group named Merge Paths 1 will appear inside your Contents list.

Controlling the Shape Hierarchy

After Effects executes operations from top to bottom within the layer stack. For Merge Paths to work correctly:

  • Ensure Merge Paths 1 is positioned below the shapes you want to affect.
  • If you want to merge only a specific set of shapes within a complex layer, group those shapes together into a single group folder (Ctrl+G / Cmd+G) and place the Merge Paths operator inside that group.
  • Any master Fill or Stroke applied to the merged result should be positioned below the Merge Paths operator in the Timeline stack.

Merge Paths Modes Explained

Expand the Merge Paths 1 dropdown in your timeline and locate the Mode setting. Select from the following options based on your design needs:

  • Merge: Combines all paths into a single object visually while preserving each path's original fill and stroke definitions.
  • Add: Performs a Boolean union, fusing overlapping shapes into a single unified outline.
  • Subtract: Cuts out any shape sitting lower in the stack using the shapes positioned above it, acting as a dynamic cookie-cutter.
  • Intersect: Isolates and reveals only the overlapping areas shared by all involved shapes, hiding the non-overlapping regions.
  • Exclude: Removes the overlapping intersections while leaving the outer, non-intersecting regions fully visible.