Animate an effect shape mask

You can use keyframes to animate an effect shape mask so that it follows the movement of an onscreen object.

Animate a shape mask

  1. Add a shape mask to a video effect.

  2. In the Timeline, move the playhead to the frame where you want the shape to begin moving.

  3. In the Viewer, position the shape mask at its starting position.

  4. If the Video inspector isn’t already open, do one of the following:

    • Choose Window > Show Inspector (or press Command-4).

    • Click the Inspector button in the toolbar.

      Inspector button
  5. Click the Video button at the top of the Inspector, and in the Effects section, click the Keyframe button for the mask you want to animate.

    Color section of Video inspector showing Keyframe button for Shape Mask item

    A keyframe is added at the position of the playhead. To see the keyframe in the Timeline, press Control-V to open the Video Animation Editor. The keyframe appears in the Color section as a diamond at the playhead position.

    Video Animation Editor showing keyframe in Color section
  6. Move the playhead to the next point in the clip where you want to define the shape mask’s position, reposition the shape mask, and add the second keyframe.

  7. To animate the shape mask throughout the clip, continue adding keyframes until you’ve defined the shape movement you want.

When you’ve added all the keyframes, you can play the clip to see the shape mask move between them. For more information about working with keyframes, see Video animation overview.

Note: You can apply and animate multiple shape masks on a clip. You can view and edit individual shape masks in the Video Animation Editor just as you would any other effect parameter. For more information, see Adjust video effects using keyframes.