askvity

How do you use motion tracking mask in After Effects?

Published in After Effects Tutorials 4 mins read

To use a motion tracking mask in Adobe After Effects, you essentially track the movement of a specific object or area in your video footage and then apply that tracking data to a mask, allowing the mask to follow that motion. Here's a breakdown of the process:

Steps to Use Motion Tracking on a Mask

  1. Import Your Footage: Import the video footage you want to work with into your After Effects project.

  2. Create a Composition: Create a new composition (Composition > New Composition) and add your footage layer to the timeline.

  3. Create a Mask:

    • Select the layer in the timeline that you want to mask.
    • Use the pen tool or shape tool to draw a mask around the object or area you want to track. Ensure the layer is selected, and then draw directly on the Composition panel.
  4. Open the Tracker Panel: Go to Window > Tracker to open the Tracker panel.

  5. Track the Mask:

    • Select the mask you want to track.
    • In the Tracker panel, the Source should automatically be your video layer. If not, select it.
    • In the Tracker panel, change the "Track" setting to "Mask Path."
    • Click the "Analyze Forward" (or "Analyze Backward") button to begin tracking. After Effects will attempt to track the movement within the area defined by your mask. You can also track frame-by-frame using the "Track Single Frame Forward" or "Track Single Frame Backward" buttons. The tracking process creates keyframes for the Mask Path property.
    • Note: If the track drifts or fails, stop the tracking, reposition the mask to the correct location, and then resume tracking. Consider adjusting the tracking settings (Search Size, Feature Size) if needed.
  6. Adjust Tracking Settings (If Necessary): The tracking might not be perfect initially.

    • Search Size: This determines the area After Effects will search in each frame to find the feature being tracked. Increase it if the movement is fast or erratic.
    • Feature Size: This determines the size of the feature being tracked. Make sure this is appropriately sized to the detail you're tracking.
    • Adapt Feature: Checking this box allows After Effects to dynamically update the tracked feature over time. This helps in situations where the tracked object changes appearance slightly during its motion.
  7. Fine-Tune the Mask Path: After the tracking is complete, you might need to manually adjust the mask path at certain keyframes to ensure it accurately follows the object. You can do this by selecting the layer, expanding the layer properties in the Timeline panel (Masks > Mask 1 > Mask Path), and then adjusting the vertices of the mask at each keyframe.

Tips for Successful Mask Tracking

  • Choose a good tracking point: Select a distinct feature within the mask area that is easy for After Effects to track. High contrast areas work best.
  • Keep the motion smooth: Sudden, jerky movements can make tracking more difficult.
  • Adjust tracking settings: Experiment with the search size and feature size to optimize the tracking.
  • Correct errors manually: Don't be afraid to manually adjust the mask path when needed.

By following these steps, you can effectively use motion tracking with masks in After Effects to achieve a variety of visual effects and enhance your video projects.

Related Articles