Detailed face tracking in After Effects maps precise facial features and enables more accurate attachment of graphics to specific points on the face. Learn how combining track points with facial measurements creates more stable and realistic movement when applying 2D or 3D elements.
Key insights
- Detailed Analysis face tracking generates numerous tracking points across facial features such as the eyes, nose bridge, lips, and chin, allowing for significantly more precise control compared to outline-only tracking.
- Using extracted facial measurements such as face orientation, scale, and offsets enables 3D layers or attached graphics to follow head rotation and movement more realistically.
- Combining a null object linked to a specific track point with orientation data from facial measurements allows applied graphics to maintain accurate positioning and rotation even as the subject turns their head.
This lesson is a preview from our After Effects Certification Course Online (includes software & exam). Enroll in a course for detailed lessons, live instructor support, and project-based training.
This is a lesson preview only. For the full lesson, purchase the course here.
After Effects offers two face tracking methods. The basic Face Tracking Outlines method traces the outer edge of the face and generates a single mask shape that follows it. Detail Analysis goes much further, tracking individual facial landmarks including the eyes, nose tip, nose bridge, nostrils, lips, chin, and cheeks. This gives you position data for specific points on the face rather than just the overall outline.
Detail Analysis takes considerably longer to process than outline tracking because of the volume of data being computed. The result is worth it when you need to attach a graphic to a particular feature rather than the face as a whole.
Setting Up the Mask
Begin at the first frame of the clip. Draw an ellipse mask around the face, then change the mask behavior from Add to None. This ensures the mask is used for tracking purposes only and does not affect the visibility of the layer. Make the ellipse generously sized so there is room for the face to move without leaving the mask area during tracking.
To confirm the shape, double-click a control point to enter free transform mode, adjust as needed, and press Return or Enter to approve the change. Rename the mask to something recognizable, like Face Track, by right-clicking it in the mask list and pressing Return to make the name editable.
Running the Detail Analysis Track
Right-click on the mask and open Track Mask. In the tracker panel, change the Method from Face Tracking Outlines to Detail Analysis, then click Track. As the tracker processes the clip, you will see a dense field of points populating the face, covering the eyes, nose, lips, cheeks, and chin rather than just the perimeter.
When tracking is complete, a new effect called Face Tracking Points is added to the layer. Expanding this effect in the Effect Controls panel reveals a set of named point groups, including the left eye, right eye, nose, and mouth. Each group contains individual landmark points with position values tracked for the full duration of the clip.
Linking a Null to a Specific Landmark
To attach a graphic to a specific facial feature, the cleanest approach is to drive a null object with the tracking data and then parent the graphic to that null.
- Create a null object via Layer - New - Null Object. Optionally set its size to 100 pixels and adjust the anchor point to the center at 50, 50 so it is easy to work with.
- Rename the null to match the landmark it will follow, such as Nose Bridge.
- Press P to reveal the null's Position property.
- In the Face Tracking Points effect on the video layer, locate the landmark you want to use, for example Nose Bridge under the Nose group.
- Use the link pick whip (the spiral icon in the Parent and Link column) to drag from the null's Position property to the Nose Bridge value in the effect. This writes an expression that sets the null's position equal to that tracked value.
The null will now follow the nose bridge point through the entire clip.
The Limitation of Position-Only Tracking
Linking position alone works well when the subject is roughly facing the camera, but it breaks down when the head rotates. If the subject turns left or right or tilts their head, a graphic parented only to the null's position will slide around rather than staying properly anchored to the face. To handle rotation, you need the facial measurements data.
Extracting Facial Measurements
To get rotation data, go back to the tracker panel and set a rest pose. The rest pose is the neutral reference frame for the face, typically a head-on frame where the face is in a natural, straight-ahead position. Navigate to that frame and click Set Rest Pose, then click Extract.
After Effects adds a second effect called Facial Measurements to the layer. This effect contains properties beyond simple point positions, including face orientation values for X, Y, and Z rotation, face offset for overall position, and face scale for the apparent size of the face as it moves closer to or further from the camera.
Combining Position and Orientation
With both effects in place, you can drive both position and rotation of your graphic.
- Enable the 3D switch on the null and on the graphic layer. This is necessary because orientation in three dimensions is only available on 3D layers.
- Parent the graphic to the null so it inherits the null's position.
- Reveal the Orientation property on the graphic layer (it appears under Transform when the layer is 3D).
- Use the link pick whip to connect X Orientation on the graphic to X Orientation in the Facial Measurements effect, Y to Y, and Z to Z.
The graphic will now follow both the position of the nose bridge and the rotational movement of the head. As the subject turns or tilts, the graphic rotates with it rather than remaining flat against the frame.
A Note on Face Scale
The Facial Measurements effect also provides a Face Scale value that changes as the subject moves closer to or further from the camera. While it is possible to link a layer's Scale property to this value, doing so removes your ability to independently control the size of the graphic. It is generally better to leave scale unlinked and adjust it manually to the size you want, then rely on the position and orientation links to handle the movement.
Going Further with Add-Ons
The built-in face tracking tools in After Effects provide a solid foundation for attaching graphics to facial features, but they have limits, particularly with extreme head angles or fast movement. Third-party add-ons such as Face Tools extend this functionality significantly, offering more precise overlays, digital makeup options, and greater control over how tracking data is applied. For more demanding face replacement or augmentation work, those tools are worth exploring.
This article is part of a continuing series on motion tracking and compositing techniques in After Effects.