Article
No items found.

How to Use Track Mattes in After Effects

by
Ryan Plummer

Learn how to use the Track Mattes feature in After Effects to leverage still images, video clips, graphics, text and generated shapes to create variable transparencies in other layers within your motion graphic design.

Ever played around with Track Mattes in Adobe After Effects, only to find yourself lost and confused? Unaware Track Mattes even existed?

Track mattes represent an essential element of any motion designer's or visual effects artist's workflow.

No matter your level of knowledge or expertise, or lack there of, with this how-to guide you'll learn when and where to apply track mattes within your MoGraph project in After Effects — and how to choose among the four available track matte options.

after-effects-track-mattes-featured-image.png

What are Track Mattes in After Effects?

To put it simply, a track matte is a still image, video clip, graphic, piece of text or shape used to create a variable transparency in another layer within your motion graphic design. The track matte carves out a portion of a layer, exposing the layer beneath it.

Ideal for reveals, keying out, and generating shapes, what makes a track matte unique is that it remains independent of all other layers in your project.

With a track matte, you create a top layer that provides the alpha, or luminance, and a bottom later that contains the imagery that will be shown, allowing you to produce animations with far fewer steps and greater ease than using a traditional mask.

track-mattes-text-layers.png

So, where in After Effects do I find the track matte options?

Finding the Track Matte Tool in After Effects

If the Track Mattes option is missing from your After Effects timeline panel, right-click the section above your layers, navigate to the Columns menu, and enable Modes, as seen below.

Blending Modes, Preserve Underlying Transparency, and Track Mattes (TrkMat) should now all be available.

Applying a Track Matte

To apply a track matte, you'll need two layers:

  1. The top layer will provide the alpha, or luminance, information
  2. The bottom layer below will act as a fill

You will only see the bottom layer content; the top layer will provide new borders for the bottom layer, as seen below.

So when should I use a track matte, instead of a mask?

When to Use Track Mattes in After Effects

Unless you like tedious work, use a track matte whenever you want to use a text (or other) layer as a controlled 'window' into an image (remember the "When In Rome" graphic above?).

With masking, you'd need a mask for each and every character in the text. Imagine animating a whole paragraph, and needing to mask every character of every word!

Instead, use the text layer's alpha channel as a track matte — and you can animate the text in its entirety. Plus, you can add effects to the text layer, or even change the font, while keeping your animation in tact.

So what about those four track matte options you referenced?

Understanding All Four Track Matte Options in After Effects

The four track matte options in After Effects are:

  • Alpha Matte
  • Alpha Inverted Matte
  • Luma Matte
  • Luma Inverted Matte
Track Matte List.png

To determine which track matte to use, you'll need to know the difference between alpha and luma modes.

THE ALPHA TRACK MATTES IN AFTER EFFECTS

When you choose the Alpha Matte option, you're asking After Effects to use the alpha channel of the layer above as a mask for the layer below — and it will use any pixel above 0% opacity as the mask.

When you choose the Alpha Inverted Matte option, you're asking After Effects to use the negative space surrounding the alpha channel in the layer above — and the mask will treat any pixel at 0% as if it were at 100% opacity.

Alpha Example.png
THE LUMA TRACK MATTES IN AFTER EFFECTS

Choosing the Luma Matte option asks After Effects to use the brightness, or luminance, of the top layer as a mask for the bottom layer.

Playing around with this mode can yield some interesting effects that cannot be achieved with alpha matting, especially when compositing layers.

Choosing the Luma Inverted Matte option asks After Effects to do the opposite, using the top layer's low-luminance areas as a matte.

Luminance Example.png

ADDITIONAL BACKGROUND ON ALPHA V. LUMA: WHEN TO USE EACH

ALPHA CHANNELS

With any MoGraph software, the alpha channel dictates how opaque, or transparent, the pixels in your motion graphic will be.

Alpha channels are usually used when a video or image is inserted above another video/image.

track-mattes-alpha.png

LUMA CHANNELS

Color for video is divided into three color channels: red, green, and blue (RGB), with each color assigned a range of values from 0 to 255. The higher the value, the brighter the color.

If you want to increase brightness, you can raise the luminance value of each channel or a single channel. For example, if you have a square and strip away the red and green channels, setting them to 0, but you maintain the luminance value of the blue channel at 255, your square will remain at max brightness.

When using a luma matte, lowering your max value will make your matte less opaque.

Want to Fast Track Your After Effects Expertise?

No problem. Follow either or both of these paths:

  1. After Effects Kickstart. In this course taught by Nol Honig, founder of The Drawing Room, regular Motionographer contributor and award-winning professor at Parsons School of Design, you'll learn how to use After Effects through real-world projects and feedback from our staff and a network of motion design students.
  2. 30 Days of After Effects. Through this free series of After Effects tutorials, you'll learn the skills and knowledge necessary to become a motion design master.


Success! Check your email (including spam folder) for your download link. If you haven't yet confirmed your email with us, you'll need to do that one time.
Oops! Something went wrong while submitting the form.
Featured
No items found.
No items found.