Skip to content

Download Started!

Your download has begun.

Back to blog

How to Use Mocha AE: Planar Tracking in After Effects, Step by Step

Planar tracking with corner pins and perspective grid overlay.

Quick answer

  1. Select the footage layer and choose Animation > Track in Boris FX Mocha, then click the Mocha logo in Effect Controls.
  2. Draw an X-Spline around a flat surface (a screen, wall or sign) and press Track Forwards.
  3. Turn on the Surface tool and drag its four corners onto the corners of the plane, then save and close Mocha.
  4. In the Mocha AE effect, set Export Option to Corner Pin, pick the layer to attach and click Apply Export.

What is Mocha AE?

Mocha AE is a planar tracker by Boris FX that ships free with After Effects. Instead of following single points, it tracks whole flat surfaces, which makes it reliable for screen replacements, signs, walls and any shot where a graphic must stick to a plane that moves, rotates or changes perspective.

Point tracking follows a small pattern of pixels and loses it when that area blurs or leaves the frame. Planar tracking uses the texture of the entire surface, so it survives motion blur, partial occlusion and perspective changes much better.

📸 See it in action on Instagram

When should you use Mocha instead of the built-in tracker?

Use Mocha AE when the object to follow is a surface rather than a point. The built-in Tracker and 3D Camera Tracker remain better for single points or for solving a full camera move.

Shot Best tool
Phone or laptop screen replacement Mocha AE (planar)
Sign, poster or wall with perspective Mocha AE (planar)
Attaching a label to one small point Built-in Track Motion
Placing 3D text in a moving scene 3D Camera Tracker

How do you prepare footage for Mocha tracking?

Good tracking starts with footage that has a clearly textured, mostly flat surface visible for most of the shot. Before tracking:

  • Trim the layer to the frames that need the graphic, so Mocha does not track unused footage.
  • Choose a frame where the surface is sharp and fully visible as the starting point; tracking can run forwards and backwards from there.
  • Avoid tracking reflections and glossy screens directly; track the frame or bezel around them.

How do you track a surface in Mocha AE step by step?

  1. Open Mocha. Select the layer, choose Animation > Track in Boris FX Mocha and click the Mocha button in the effect.
  2. Draw the shape. With the X-Spline tool, click around the surface and right-click to close the shape.
  3. Check motion settings. In the Track tab, keep Translation, Scale, Rotation and Shear on and enable Perspective for surfaces that tilt.
  4. Track. Press Track Forwards, then go back to the start frame and Track Backwards if needed.
  5. Align the surface. Turn on the Surface tool and drag its corners to the real corners of the plane. Scrub the timeline to confirm it sticks.
  6. Save and close. The tracking data is stored inside the Mocha AE effect.

How do you apply Mocha tracking data in After Effects?

Tracking data is applied from the Mocha AE effect controls. Click Create Track Data, choose the layer you tracked, set Export Option to Corner Pin for perspective surfaces or Transform for flat movement, choose the target layer in Layer Export To and click Apply Export. The target layer receives keyframes that pin it to the surface.

For screen replacements, precompose the new screen content first, so you can change it later without re-applying the track.

Why does a Mocha track drift and how do you fix it?

A Mocha track drifts when the tracked area loses texture, gets covered or includes background that moves differently. The common fixes:

  • Occlusion: draw a second shape above the main one around the object passing in front (a hand, a person) and track it; Mocha excludes layers above from the layer below.
  • Too much background: tighten the shape so it covers only the plane.
  • Blur: track from the sharpest frame in both directions.
  • Small slips: use the AdjustTrack module to correct individual corners on bad frames.

Boris FX documents every module in the Mocha user guide.

What is the difference between Mocha AE and Mocha Pro?

Mocha AE covers planar tracking, roto shapes and Corner Pin export, which is enough for most motion design. Mocha Pro is a paid plugin that adds object removal, stabilisation, lens tools and more export formats, aimed at compositing and VFX work.

Tracked screen replacements are a staple of app promos; examples are on the explainer and app promo videos page.

FAQ

Is Mocha AE free?

Yes. Mocha AE is included with After Effects and opens from the Animation menu. Mocha Pro is a separate paid product.

Can Mocha track a moving phone screen?

Yes. Track the phone body or bezel rather than the reflective screen, align the Surface to the screen corners and export Corner Pin to the new screen layer.

Why is Apply Export greyed out?

Apply Export stays inactive until tracking data is created. Click Create Track Data first, choose the tracked layer, then select the export option and target layer.

Can I use Mocha shapes as masks?

Yes. In the Mocha AE effect, enable the shape under Module Renders or use Create AE Masks to bring tracked shapes back as animated masks.

Olaf olafmotion Klimasz

Written by

Freelance Motion Designer Kraków, Poland

Available for projects

I'm Olaf, a freelance motion designer based in Kraków, working with clients worldwide.

I turn complex products into clear, snappy animations: SaaS explainer videos, UI animations and product launch videos. If your product needs 5 minutes of explaining, I'll make it take 30 seconds.

Since 2019 I've also been producing videos and motion graphics for The Moving Average, a trading education YouTube channel. On the technical side, I build custom tools and plugins for After Effects, like the free After Effects project downgrader and the screenshot to vector converter, which keep my workflow fast and my deadlines calm.

Since 2019Motion graphics for The Moving Average on YouTube
WorldwideClients served from a studio in Kraków
AE toolsCustom scripts and plugins for After Effects
What I do
  • Motion graphics
  • Explainer videos
  • UI & app animations
  • Product launch videos
  • After Effects tools

Got a project in mind? Check my work or message me.

After Effects templates to explore

Continue with Effects Templates or open one of the latest project pages.