Publishers of technology books, eBooks, and videos for creative people

Home > Articles

  • Print
  • + Share This
This chapter is from the book

Putting Masks in Motion

Putting masks in motion for visual effects work is also known as rotoscoping, which is covered in greater depth in Chapter 7. There are all kinds of uses for masks, however, and that chapter is fairly specialized, so here is an overview of some things to pay attention to when putting a mask in motion.

Interpolation Basics

You can set a temporal ease on a mask keyframe, but you have no corresponding spatial curves with masks. Each point travels in a straight line to its position in the following keyframe.

This means that to precisely mask an object traveling in an arc, you need to set a lot more keyframes than for an object traveling in a single direction.

The real bummer about mask keyframes is that you can't select a group of them and translate the mask; as soon as you move, rotate, or scale it, your selection snaps to the current keyframe only.

There is a workaround. You can duplicate the layer being masked and use it as an alpha track matte for an unmasked source of the same layer, in which case you're free to transform (or even motion track) the duplicate using the normal layer transforms. It's not a perfect solution by any means, but it is often useful and hardly anyone thinks of it.

Moving, Copying, Pasting, and Masks

You can freely copy mask shapes from one source (a different mask, a different keyframe in the same mask animation, Illustrator, or Photoshop) and paste them into an existing mask channel. You just have to follow some rather strict rules that depend on the situation:

  • With no keyframes involved in the source or target: Selecting the mask itself and pasting it to another layer automatically applies it as-is to a new mask or to any mask that is selected.
  • Source mask has Mask Shape keyframes, but target has none: Highlighting the mask (not the specific keyframes) and pasting creates a new mask as if pasting from time 0. Highlighting any or all Mask Shape keyframes pastes a new mask with keyframes starting at the current time.
  • Target layer has masks with or without keyframes: To paste Mask Shape keyframes into a particular mask at a particular time, highlight the target mask before pasting. Highlighting the target Mask Shape property highlights any keyframes and replaces them (not usually what you want).

In all cases, if the target layer is a different size or dimension from the source, the mask stretches to maintain its relationship to the layer boundaries.

In many situations, pasting Mask Shape keyframes blindly in this manner is not what you're after, but a rather obscure feature in the Layer window will help you. The Target pull-down along the bottom of the window has a unique function: When you choose an existing mask as the target, you can start drawing a new mask anywhere in frame and it will replace the shape in the target mask layer ( Figure 3.21 ).

03fig21.jpg

Figure 3.21 This pull-down menu at the bottom of the Layer window makes it easy for you to create a mask shape from scratch, replacing the shape in the target mask. If the target mask has keyframes, After Effects creates a new keyframe wherever you draw in a new shape for that mask.

First Vertex

When pasting in shapes or radically changing the existing mask by adding and deleting points, you may run into the issue of how the points line up. Hidden away in the mask context menu, and available only with a single vertex of the mask selected, is the Set First Vertex command. If you are having problems with mask points twisting around to a mismatched point during an interpolation, setting the First Vertex to two points that definitely correspond should help straighten things out. It also can be necessary for effects that rely on mask shapes, such as the Reshape tool (described in Chapter 7).

  • + Share This
  • 🔖 Save To Your Account