How to Combine Layers in After Effects
StyleFrame Team8 min read
To combine layers in After Effects, select them in the Timeline and use Layer > Pre-compose. This nests them in a new composition that appears as a single layer and stays fully editable. For shape layers, you instead group the shapes (Ctrl/Cmd+G) or add a Merge Paths operator to fuse their outlines into one compound shape. Visual blending without nesting is handled separately with blend modes, track mattes, and adjustment layers.
What "combine layers" means in After Effects
After Effects has no single Merge Layers command. "Combine" can mean four different things, and each uses a different tool:
- Consolidating the timeline: pre-compose.
- Fusing vector outlines: Merge Paths inside a shape layer.
- Grouping elements: shape groups or parenting.
- Blending the look of layers: blend modes, mattes, and adjustment layers.
Picking the right one up front avoids flattening work you'll need to revisit.
Method 1: Pre-compose layers
Pre-composing is the standard answer. It takes the selected layers, moves them into a new nested composition, and replaces them in the original timeline with one layer that points to that comp.
Steps
- Select the layers. Ctrl/Cmd-click individual layers, or Shift-click to select a range.
- Right-click one of them and choose Pre-compose, or go to Layer > Pre-compose.
- Name the new composition. A descriptive name such as "BG_particles_v02" saves time when the project grows.
- Choose an attribute option (explained below).
- Click OK.
The new layer sits at the position of the topmost selected layer. Double-click it to open the nested comp and edit the originals at any time.
Leave all attributes vs. move all attributes
With a single layer selected, the dialog offers two options:
- Leave all attributes in [comp]: the layer's effects, masks, and transform stay on the layer in the parent comp. The new comp contains just the source. This is useful when you want to wrap one layer without changing how it currently looks.
- Move all attributes into the new composition: effects, masks, keyframes, and transform properties go inside the nested comp. The pre-comp layer in the parent comp gets neutral values.
With multiple layers selected, After Effects only allows Move all attributes. That makes sense, since there's no single layer to keep the attributes on.
You can also tick Open New Composition to jump into the nested comp right away, and Adjust composition duration to the time span of the selected layers to trim the new comp to the layers' in and out points.
Pre-compose best practices
- Match frame size and frame rate to the parent comp, unless you have a reason to nest at a different size (for example, a larger comp to allow for camera moves or overscan).
- Turn on Collapse Transformations (the sun-shaped switch) on the pre-comp layer when it contains 3D layers, vector artwork, or scaled elements. This applies the parent's transforms to the nested content directly, keeping vectors sharp and 3D layers interacting properly.
- Remember the render order. Effects applied to a pre-comp layer process the already-rendered result of the nested comp. Effects inside the nest run first. Plan which effects belong inside and which belong outside.
- Name and color-code nested comps. In large projects, "Pre-comp 14" is a trap.
- Save an incremental version before heavy restructuring, so you can revert if the nest changes the look.
Method 2: Combine footage with different in and out points
A common beginner question is how to place two trimmed sections of the same clip on a single layer, as in Premiere Pro. After Effects only allows one source item per layer, so you work around it:
- Drop the footage into the comp.
- Duplicate the layer (Ctrl/Cmd+D) once for each section you need.
- Trim each duplicate with Alt/Option+[ and Alt/Option+].
- Select the trimmed layers and pre-compose them.
You end up with a single layer containing the footage with gaps where you cut. Watch out for overlapping audio if the trimmed sections overlap in time.
Method 3: Merge shape layers and paths
Shape layers behave differently, because their contents are vector groups rather than separate source items. Here are the options, from lightest to most destructive.
Group shapes
If your goal is to move or animate several shapes as one, select the shape items (Rectangle 1, Ellipse 1, and so on) inside a shape layer's Contents and press Ctrl/Cmd+G, or use Add > Group. Everything inside the group takes the group's transform. Keep in mind that Ctrl/Cmd+G may not work if you've selected whole layers instead of items inside a layer, which is a frequent source of confusion.
Use Merge Paths
To actually fuse outlines into a compound shape:
- Draw your shapes in the same shape layer, so they share one Contents group.
- Twirl open the layer, click the arrow next to Add, and choose Merge Paths.
- Open the Merge Paths property and set the Mode.
The mode options let you unite, subtract, or intersect shapes:
- Add: unions the shapes into one outline.
- Subtract: cuts later shapes out of earlier ones.
- Intersect: keeps only the overlapping area.
Merge Paths only affects shapes above it in the stack. Shapes below it are untouched. That lets you keep some shapes independent and reorder or duplicate elements to control which ones are merged. Stroke and fill are applied to the combined result, so set them after the merge for predictable output.
Move shapes between layers
After Effects has no native command to merge several separate shape layers into one. The manual route is to open each layer's Contents, select the shape groups you want, copy them, and paste them into a target shape layer. You can reorder the pasted items by dragging them in the stack. If you do this often, third-party script and plugin tools offer a one-click merge, but they are add-ons rather than built-in features.
Joining open paths
Merge Paths is a boolean operation, not a join command. It won't connect the endpoints of two open lines into one continuous path. Some artists round-trip the paths through Illustrator, join them there, and paste the result back onto the path property. It works, but you'll often need to realign the result by hand afterward.
Method 4: Combine layers visually without nesting
Sometimes you want layers to look combined without restructuring the timeline.
- Blend modes: Screen, Add, Multiply, Overlay, and others change how a layer interacts with everything beneath it. Use them for light effects, shadows, and texture overlays.
- Track mattes: use one layer's alpha or luma to define the visibility of another. This is the right tool for revealing footage inside a shape or text.
- Adjustment layers: apply an effect or color correction to everything below it. This gives you a unified grade or blur across several layers without altering any of them.
- Parenting: link layers to a null or parent so they move as one while remaining separate layers. It's often better than a pre-comp when you only need shared motion.
These approaches keep everything live and let you adjust it later, so prefer them when you may need to change individual layers.
Method 5: Flatten by rendering
When a nest gets heavy or you're done with it, you can commit the result:
- Pre-render: use Composition > Pre-render to render a comp and replace it with the rendered file. This reduces playback and render load for complex nested sections.
- Render and replace: right-click a layer and choose Render & Replace to render it and swap in the output.
- Export an image sequence or clip, then re-import it. Rendering to an image sequence with alpha gives you a lossless, flexible intermediate.
Rendered layers can't be edited anymore, so keep the source comp in the project in case you need changes.
Combining layers and the rest of your pipeline
Layer organization matters more when you're pulling assets from multiple tools. A typical flow might bring in 3D passes from Cinema 4D or Blender, a plate from Premiere Pro, and comps handed off from or to Nuke. Pre-composing each source group, such as "3D_beauty", "FX_dust", and "BG_plate", keeps the master timeline readable and gives you clean handoff points.
Common mistakes to avoid
- Pre-composing too early. Nest once the structure is settled, or you'll keep diving in and out of comps.
- Forgetting Collapse Transformations on nested 3D or vector content, then wondering why edges are soft or layers don't interact.
- Mismatched comp settings, such as a nested comp at a different frame rate that causes subtle timing issues.
- Using Merge Paths when you only wanted a group. Merge Paths changes the geometry and the stroke and fill behavior. A group just moves items together.
- Expecting a one-click shape layer merge. If it isn't built in, copy and paste into one layer or use an add-on.
Quick reference
Wrapping up
Combining layers in After Effects comes down to choosing the right level of commitment. Pre-compose for organization, Merge Paths for vector geometry, mattes and adjustment layers for visual blending, and rendering when you're ready to flatten. Use the least destructive option that solves the problem, and your timeline stays flexible for the revisions that always come.