Join Richard Harrington for an in-depth discussion in this video Tracking an object with the 3D camera tracker, part of After Effects Guru: Tracking Cameras and Stabilizing Footage.
- Normally, the 3D Camera Tracker is used to track a camera. However, I sometimes find if the camera is locked off, and there's movement within the scene, you can cheat and use it as an object tracker. Let me show you how. Let's take this shot of traffic and put it into a new composition. I'd like to obscure one of the license plates here. So, using the Track Camera command, it's going to analyze. It's now solving, and what I'm going to do is select the license plate.
So, I can do this pretty easily with some Shift-clicks. And I've got the license plate relatively selected accurately. Holding down the Option or Alt key, I'll scale that target a bit smaller, and with a right-click, create a new solid and a camera. Now that I've got the solid, I'll just use that as an Adjustment Layer, so it's very easy to adjust the height and the width, and with the anchor point, I could nudge that into place so it covers up the license plate.
Let's go to the Rounded Rectangle Tool and double-click, and it even takes on a license plate-type shape. I'll feather those edges just slightly so they blend a bit. And then remember, any layer can become an Adjustment Layer by simply clicking the Adjustment Layer switch. Now, I could toss a blur effect on there. And by blurring that out with the Repeated Edge Pixel, you'll notice that even though the camera didn't move, I was able to cheat and use that as an effect to obscure the license plate.
Now, you could of course, with this same shot selected, tackle another car. So, with the 3D Camera Tracker active, I could attempt to find this license plate. Remember, dragging to different points may show you more or less. There's a lot of points there right now. There we go. Make that a little larger. And do the same thing all over again, create a solid.
Scale that as needed. Adjust the anchor point to position it. Toss on the rounded rectangle, make it an Adjustment Layer, and apply the blur. Now what you're going to notice is that because these two cars are moving at different rates, it's not going to be perfect.
Right now, everything's more or less fine, other than we're blurring out part of this vehicle here. So what I want to do is make a slight change. Right about here is when the car behind actually moves. So, P for position, I'll just add a key frame. And nudge that just a little bit.
And then it's pretty easy to mask that mask. So, if I select the mask, I could take the Pen Tool and click to outline the shape of the car. We'll tell that mask to subtract, so now it removes from the other mask, leaving the car behind. And it's pretty easy to just keyframe that.
So as the front car moves off, Command-T for Free Transform, and just sort of pull it along with the vehicle, making sure of course that you get it all the way off the screen before the truck comes into play. Now this is not perfect, but from a very quick down and dirty, I've got two tracking points here.
I've managed to obscure the license plates, and as this car pulls off, it reveals this other mask down behind. You can continue to refine the feather here on this mask and make other slight adjustments, but as a quick solution for obscuring things like license plates or name badges or logos, this often works. This is not the official way to use the 3D Camera Tracker, in this case I'm using it as an object tracker, but my feeling is, is if it works, why not give it a shot? In this case, it saved a lot of time and it gave me results that were good enough particularly if I was on a tight deadline for something like a broadcast news piece.
So feel free to explore with the 3D Camera Tracker, and you might find some unexpected uses that takes it that much further.
- Analyzing footage
- Using the 3D camera tracker to stabilize footage
- Choosing and moving a target
- Adding 3D text to a scene
- Tracking an object
- Applying the Warp Stabilizer VFX
- Choosing a stabilization method
- Reducing rolling shutter distortion
- Matching movement
Skill Level Intermediate
Q: This course was updated on 10/10/2017. What changed?
A: The following topic was updated: adding 3D text to a scene. In addition, new videos were added that cover masking out elements that can ruin a track, improving the Warp Stabilizer results by masking, and removing camera shake blur.