How to Use Track Mattes in Adobe After Effects
Track mattes in Adobe After Effects allow you to define the transparency of one layer using the pixel opacity or brightness values of another. This guide provides a straightforward walkthrough on how to set up and use track mattes for masking, the difference between Alpha and Luma mattes, and how to effectively control your compositions using modern After Effects tools.
What Is a Track Matte?
A track matte uses a designated "matte layer" to determine which parts of an underlying "fill layer" are visible. Unlike standard vector masks applied directly to a layer, track mattes can be dynamic, animated text, shape layers, or full-motion video clips, making them significantly more versatile for complex animations.
Step-by-Step: Setting Up a Track Matte
- Arrange Your Layers: Place the layer you want to mask (the target layer) in your timeline. Place the layer you want to use as the mask (the matte layer, such as text or a shape) in the composition.
- Reveal the Track Matte Column: Look at the Timeline
panel. If you do not see the Track Matte (TrkMat)
column, click the Toggle Switches / Modes button at the
bottom of the timeline or press
F4. - Assign the Matte: On the target layer, locate the Track Matte pick whip (the spiral icon) or the drop-down menu in the Track Matte column. Drag the pick whip to the matte layer, or select the matte layer directly from the drop-down menu.
- Select the Matte Type: Next to the drop-down menu, choose between Alpha and Luma, and toggle the Invert Matte button if needed.
Choosing the Right Matte Type
After Effects provides two distinct types of mattes, each with an inverted option:
- Alpha Matte: Uses the transparency (alpha channel) of the matte layer. The target layer is visible only where the matte layer has solid pixels (100% opacity) and hidden where it is transparent.
- Alpha Inverted Matte: Reverses the alpha mask. The target layer is visible where the matte layer is transparent and hidden where it is opaque.
- Luma Matte: Uses the luminance (brightness) values of the matte layer. Pure white areas make the target layer fully visible, pure black areas make it completely transparent, and gray shades create varying levels of semi-transparency.
- Luma Inverted Matte: Reverses the brightness mapping. Black areas reveal the target layer, while white areas hide it.
Universal Track Mattes (After Effects 2023 and Newer)
In modern versions of After Effects, track mattes are no longer restricted to using the layer directly above the target layer.
- You can select any layer in your timeline as a matte, regardless of layer stacking order.
- Multiple layers can reference the same single matte layer simultaneously, eliminating the need to duplicate your matte layers across the composition.
- The matte layer's video switch (the eye icon) automatically turns off when selected, but it can be turned back on if you want the matte layer itself to remain visible in the final render.