Join Ashley Kennedy for an in-depth discussion in this video Motion tracking AniMatte masks, part of Editing with Composites and Effects in Avid Media Composer.
In the last movie, we learned how to keyframe AniMatte shapes to animate them over time. Well, sometimes the movement isn't too easy to keyframe, which is why motion tracking is such a great tool. Let's take a look. Okay, so we have our rocket here and we have our stars. And what I'd like to do is just make it seem like the rocket is traveling through the stars. We did this in an earlier movie with Chroma Key techniques and now we're going to do it with AniMatte. Okay so we need to probably darken this up to make it look like it can be in the night sky.
We also want to rotate it around so that it's going in the same direction as the stars. So I'm going to go to my Effect pallet, and under Image I'm going to choose the Color Effect. And let's go ahead and open up the Effect Editor, and let's darken it up and increase the contrast. And let's give that tail an orangeish tint, bump up the red, and bump down the blue.
Looks good as far as color is concerned. Now let's go ahead and rotate it. I'm going to do so with a 3D Warp. Option+Drag this on top, and open the Effect Editor. Okay, so we want to rotate it around the Z axis. I'm going to go ahead and do that. And I'm going to put a keyframe at the very beginning and very end. And then I'm going to press Command+A or Control+A to select both of them, and reposition it.
And I'm going to just go through the whole thing and make sure that it looks okay. Actually, I probably need to reposition it just a bit more. Okay, I think that's going to be just fine. I'm going to go ahead and now apply my AniMatte effect. I'll come in to Key, and AniMatte, I'm going to Option+Drag, or Alt+Drag for a PC, and I'm going to go into my Effect Editor and draw my shape. I'm going to use the Polygon tool.
I'm going to use a combination of curves and edges to draw this shape. As we go through you can see that the shape stays where it is but the rocket moves. And that's not what we want. Now the first thing I want to do is just apply some Feathering to the shape so that it blends into the background just a little bit better. So I'm going to come into my Feathering parameter. And bump up my horizontal and vertical Feathering parameters.
Bring down my Bias just a little bit. And I'm going to just click outside in the gray area so that I can see how it looks in its first state. And again, it's going to look bad as I go on because my matte doesn't move. So what we want to do is perform a track. We do that with the Tracking tool. The Tracking tool is right here. It's in the AniMatte effect and it's in a lot of effects. The Tracking tool is a very cool way for you to track your video and move an effect along with it. I'm going to click on the Tracking tool, and as you see here we see the stars, which is the background, and we have our tracker.
So we want to instead track our foreground, and we want to put our tracker, specifically the yellow X on an area of high contrast. That's how it's going to grab on to the video. So I'm just going to put it about right there. And it's going to find inside this smaller square, that area of high contrast. And the larger square is basically the outer limits. And I'm just going to drag that in just a little bit, because we want it to be very, very close.
So if we have a good track, that means that the X will not leave this location. It's going to latch on to it. I'm going to go ahead and start the track. The Start Tracking button is right here. I'm going to go ahead and press it, and just keep your eye on that tracker and make sure that it doesn't leave that spot. Okay, we're done. The track is finished, and we have this squiggly yellow line. This is actually tracking data. So it tracked every movement of this video.
And we're going to use this to our advantage by attaching this tracking data to our AniMatte shape. That's pretty amazing. So, I'm going to go ahead and close that and head back to the beginning here. I'm going to choose my shape, and right now it's still not moving, but I'm going to go ahead and twirl down my Tracking category and you can see I have up to four trackers I can apply. Right now we only have one tracker because this is a fairly simple movement, going from left to right.
There is a little bit of arching but if you have a lot of rotation, if something is going back and to the left or the right, you might want to attach more than one tracker. But we only have one so all I have to do is just click on this button and I've enabled my tracker. And now when I go through, you can see that my shape goes with it. Now it doesn't keep it in frame in the very end because I have just changed the trajectory. I'm going to have to actually reform the shape. But take a look at the intricate movement that the shape is making along with the video.
Okay. So when something changes, you usually can just click on the last keyframe. You might have to add a couple more in between, but I'm going to see how much we can get away with just clicking on the last one. I'm going to redraw the shape so that it surrounds the rocket ship at the end as well. Okay, so I'm going to go ahead and make sure that just this keyframe is selected and change the shape just a bit. I'm going to have to double-click on the shape and then just start to manipulate the shape around the rocket ship like so.
Okay I think we are getting close. We've reformed this shape, but the tracking data is still applied. And let's go ahead and just scrub through it and see if it follows it. It looks like it does. I'm going to just click outside in the gray area here, and if you don't have a gray area you can get one by just reducing your size just a little bit. And I'm to go ahead and play and let's see how it does. (video playing) All right, not bad at all! Might just need a little bit more tweaking, but I think this looks really good.
So if you have a simple movement, keyframes are probably good enough. But if you have a more complex movement, use the Tracking tool. Because the Tracking tool will make intricate movements really easy to work with.
- Introducing compositing
- Pulling chroma keys with SpectraMatte
- Animating a chroma key
- Working with luma keys using the 3D Luma Keyer
- Masking out part of an image with the AniMatte effect
- Using AniMatte effects as transitions
- Using alpha channels in keys
- Creating a title sequence using a layered Photoshop file
- Changing the color or characteristics of an area inside the video frame using the Paint effect
- Writing words with the Brush tool
- Cloning and tracking objects
- Removing scratches and artifacts