---
title: "Shape as Mask"
url: "https://help.maxon.net/ag/en-us/Content/html/Shape_as_mask.html"
section_path: "Shape and Mask Animation > Shape as Mask"
description: "This Mask slot uses the Alpha channel of whatever is connected to it. This content may come from a connection to a Reader, a Generator, or from a Link or …"
---

# Shape as Mask

In *Autograph*, many elements have a *Mask* slot:

- Each layer contains a [Mask](https://help.maxon.net/ag/en-us/Content/html/Source_and_mask.html.md) to make its Source partially disappear.
- Most *Modifiers* have a *Mask* slot to localize their action to a specific area.

This *Mask* slot uses the *Alpha channel* of whatever is connected to it. This content may come from a connection to a [Reader](https://help.maxon.net/ag/en-us/Content/html/File_image_reader.html.md), a Generator, or from a [Link or Share](https://help.maxon.net/ag/en-us/Content/html/Linking_and_sharing.html.md).

## Difference with After Effects

In *After Effects*, a *Mask* is a specific item that applies **only to layers**. Referring to an external source as a *Mask* in *After Effects* is done using a *Track Matte* or a *Set Matte* effect, whereas in *Autograph*, a *Mask* is more generic and can be **connected to any source**.

We'll see that this approach offers a wide range of possibilities, such as using all of the *Shapes* *Generator's* features in a *Mask* slot.

## Drawing a Layer Mask using the Shapes Generator

In this chapter, we'll use the *Shapes* *Generator* to create *Paths* and *Styles*, which output images with an *Alpha channel*. The result of this *Generator* can then be used as a *Mask*.

Remember that the current selection in the [Selection Overview](https://help.maxon.net/ag/en-us/Content/html/Selection_overview.html.md) will define which item the *Path* creation tools will act on.

**To draw a *Mask* on a layer**, one solution is to:

- Select the layer in the *Timeline*
- Click on its *Mask* line in the *Selection Overview*
- Switch to the [Draw Bézier Curve](https://help.maxon.net/ag/en-us/Content/html/Creation_and_editing_tools.html.md) tool
- Start drawing in the *Viewer*

Later, we'll look at an even faster way of drawing a *Mask*.

[Video: create_mask.mp4](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/shape/create_mask.mp4)

A *Shapes* *Generator* will appear on the *Mask* line, containing:

- A *Path Group*
- A *Path*
- A *Fill Style*

This is exactly the same structure we've described so far.

> **Note:** Here we're assuming that the ***Fill Style*** was the default style [defined in the Viewer's top bar](https://help.maxon.net/ag/en-us/Content/html/Add_paths_and_styles.html.md) while using the ***Draw Bézier Curve*** tool.

## Automatic Switch to Mask Mode on Layer Selection

Drawing a *Mask* on a layer is a very common task, especially in *Rotoscopy*. That's why after selecting a layer, the *Path* creation tools will automatically switch to *Make Mask on the Layer* mode.

This option is accessible from the top bar of the *Viewer*:

![Image: mask_selector.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/shape/mask_selector.jpg)

The **two creation modes** are:

- *Create a new Shape Layer*: active by default when **no layer is selected**
- *Draw a new Path on the Mask*: active by default when **a layer is selected**

This method is faster than the one described above, as it doesn't require you to select the *Mask* line in the *Selection Overview*.

[Video: create_mask_automatic.mp4](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/shape/create_mask_automatic.mp4)

The previous method, on the other hand, is more generic and allows you to precisely define where you want to add the *Shapes* *Generator*. This is especially useful for drawing a *Mask* on a *Modifier*.

> **Warning:** If you select ***Source*** instead of ***Mask*** before drawing, *Autograph* will prompt if you wish to replace the current layer source with a ***Shapes*** *Generator*. Since the *Mask* contains nothing by default, you are not asked this question when drawing a *Path*.

## Drawing a Mask on a Modifier

Most *Modifiers* have a *Mask* slot to localize their action to a specific area.

The generic method we've defined allows you to:

- Add a *Blur* *Modifier* to a layer
- Select the *Mask* line of the *Modifier* in the *Properties* section
- Switch to the [Draw Bézier Curve](https://help.maxon.net/ag/en-us/Content/html/Creation_and_editing_tools.html.md) tool
- Draw a *Mask*

[Video: create_mask_modifier.mp4](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/shape/create_mask_modifier.mp4)

The new *Shapes* *Generator* and its contents appear in the *Selection Overview*:

![Image: mask_path.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/shape/mask_path.jpg)

This is also the way to add *Masks* to the *Garbage Matte* and *Core Matte* slots of the *Color Difference Key* *Modifier* (similar to the *Keylight* effect in *After Effects*).

## Advanced Masks Using all Shapes Generator Features

All the *Shapes* *Generator's* features can be used in a *Mask* slot:

- Use animated *Stroke* *Styles* rather than simple *Fill* *Styles*
- Add any *Image Modifier* to [Styles, Shape Groups](https://help.maxon.net/ag/en-us/Content/html/Style_modifiers.html.md) or the *Mask* slot itself
- Add [Path Modifiers](https://help.maxon.net/ag/en-us/Content/html/Path_modifiers.html.md) to *Masks*
- Use [Path Generators](https://help.maxon.net/ag/en-us/Content/html/Path_generators.html.md) rather than manually drawn *Paths*
- Etc. ...

[Video: garbage_matte.mp4](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/shape/garbage_matte.mp4)

This makes it possible to create visually complex effects, even though their setup is very straightforward. Simply click on the parameter where you want to add a *Shapes* *Generator*, then use the *Selection Overview* to understand the various interactions between items.
