What a track matte does and when you need it

A track matte in After Effects uses the brightness or transparency of one layer to control what you see in another layer. The layer that does the controlling is called the matte; the layer being controlled is the layer you want to show through it. Instead of drawing a mask by hand, you let one layer's content decide what appears.

The most common use is text or a shape that reveals video or an image underneath. You might have a video clip and want only the parts inside a text shape to show. You set the text layer as the track matte, and After Effects hides everything in the video layer except where the text is opaque.

Track mattes work with the layer's alpha channel (transparency) or its luminance (brightness). If you use alpha, only the opaque parts of the matte layer show through. If you use luminance, bright areas show through and dark areas hide.

Key Takeaways

  • The matte layer must sit directly above the layer it controls in the timeline, and you turn on the TrkMat menu to connect them.
  • Alpha Matte uses the transparency of the matte layer; Luma Matte uses its brightness values to decide what shows through.
  • The matte layer itself becomes invisible once you apply the track matte — only the layer below is affected.
  • You can animate the matte layer, and the changes update the mask in real time on the layer below.

Setting up the layers in the correct order

Track mattes only work when the matte layer is directly above the layer it controls. Open your composition and arrange your layers so the one you want to use as a matte sits one position above the layer you want to mask. If your text layer is the matte, it goes above your video or image layer.

The order matters because After Effects reads the track matte instruction and looks only at the layer directly below. If you have other layers between them, the track matte will not work. You can have layers above the matte layer, and they will not be affected — only the single layer directly underneath responds to the matte.

Turning on the Track Matte column and selecting a matte type

In the timeline panel, look at the column headers. You will see columns for switches, modes, and other layer properties. To the right of these, there is a small arrow or button labeled TrkMat (short for Track Matte). Click it to reveal the track matte dropdown menu for each layer.

Once the TrkMat column is visible, click the dropdown next to the layer you want to mask — the one below the matte layer. You will see four options: None, Alpha Matte, Alpha Inverted Matte, Luma Matte, and Luma Inverted Matte. Select the type that matches what you need.

Alpha Matte uses the transparency of the layer above. If the matte layer has a solid text shape, only that text shape will show through. Luma Matte uses brightness instead. A bright area in the matte layer shows through; a dark area hides. The Inverted versions flip this — Alpha Inverted hides where the matte is opaque, and Luma Inverted hides where the matte is bright.

What happens after you apply the track matte

Once you select a track matte type, the matte layer disappears from view in the composition. You will still see it in the timeline, but it no longer renders as a visible layer. Only the layer below it shows, and only the parts that pass through the matte appear on screen.

The matte layer's properties remain editable. You can move it, scale it, change its opacity, or animate any of its properties, and the mask updates instantly. If you animate the text layer that is your matte, the mask on the layer below animates with it.

If you want to see the matte layer again temporarily, click the eye icon next to it in the timeline. This shows it for reference while you work, but it will not render in your final output as long as the track matte is active.

Choosing between Alpha and Luma mattes

Use Alpha Matte when your matte layer is text, a shape, or anything with clear transparent and opaque areas. Text layers are the most common choice because the letters are opaque and the background is transparent. An image with a transparent background also works well.

Use Luma Matte when you want brightness to control the mask. A grayscale image works well — white areas show through, black areas hide, and gray areas show through partially. This is useful if you have a gradient or a photograph and want the brightness values to create the mask shape.

If you invert either type, the mask flips. Inverted mattes hide where the original would show. This is useful if you want to hide the text shape and show everything else, or if your grayscale image has the brightness backwards from what you need.

Fixing common track matte problems

If the track matte is not working, check that the matte layer is directly above the layer you want to mask, with no layers in between. If there is a layer between them, move the matte layer up one position. Also confirm that you selected the correct layer in the TrkMat dropdown — you set the matte on the layer below, not on the matte layer itself.

If the matte layer is visible when it should not be, make sure the track matte is set to something other than None. If it is set correctly and still visible, check that the layer below has the track matte applied. Sometimes the settings are on the wrong layer.

If the mask is inverted from what you want, try the Inverted version of your current matte type. If you are using Alpha Matte, switch to Alpha Inverted Matte. If you are using Luma Matte, try Luma Inverted Matte. This flips which parts show through.

Animating and adjusting the matte layer

After you apply a track matte, you can animate the matte layer just like any other layer. Add keyframes to position, scale, rotation, or opacity. The mask on the layer below updates in real time as the matte layer moves or changes. This is one of the main advantages of track mattes over drawn masks — the matte layer stays editable and responsive.

You can also apply effects to the matte layer. A blur effect on the text layer will soften the edges of the mask. A color correction effect changes how the matte looks, which affects the mask if you are using a Luma Matte. Experiment with effects to see how they change the mask behavior.

Frequently Asked Questions

Can I use a video clip as a track matte?

Yes. A video layer can be a matte just like a still image or text. If you use Alpha Matte, the video's transparency controls the mask frame by frame. If you use Luma Matte, the brightness of each frame controls what shows through. This is useful for animated reveals or effects that follow motion in the video.

What if I want to use multiple mattes on the same layer?

You cannot apply two track mattes to a single layer directly. However, you can nest compositions or use multiple layers with different mattes stacked on top of each other. Another option is to use a drawn mask in addition to a track matte — they work together.

Does the matte layer need to be the same size as the layer below?

No. The matte layer can be any size. If it is smaller, only the area it covers will show through. If it is larger, it will mask the entire layer below. You can scale and position the matte layer independently of the layer it controls.

Can I remove a track matte after I apply it?

Yes. Click the TrkMat dropdown for the layer and select None. The matte layer becomes visible again, and the mask disappears. The matte layer itself is not deleted — only the track matte connection is removed.

What is the difference between a track matte and a layer mask?

A layer mask is drawn directly on a single layer using shapes or the pen tool. A track matte uses another layer's content to control the mask. Track mattes are easier to animate and adjust because you edit the matte layer itself. Layer masks are more precise if you need to draw specific shapes by hand.