what's happening guys, Dan Debenham here and today we are talking about
After Effects specifically in After Effects we're talking about motion
tracking and one of the easier ways of doing that so this is part of a two
three part series that we're going to do on After Effects showing you the ins and
outs of little tricks and tips along with the some of the major stuff that
you can actually do in After Effects so with that let's get straight into it
okay and so we're going to talk about motion tracking in After Effects using a
piece of footage that I shot earlier to stick on a logo and track that motion to
my hand now basically as you can see from the shot that you can see here what
I've got is I've got my finger up and I've got a sort of in a pinch motion and
my hands moving moving about what have you and that he's gonna track to this
area now I'm lucky I'm wearing a ring and so that gives me a nice clean object
to actually track from although you can track from anything basically you just
might take a little bit more time depending on how clean the object is so
how different it looks to the surrounding area and how much more
obvious it is for After Effects to be able to track to it so with that let's
get started and let's see how we go about doing that so right click and we
click new null object and that brings up a new null object basically that is a
new layer that we're gonna use to track he gets some a little red square on the
screen which is basically got little a little squares on it at that point then
we go across to tracker and we hit track motion and then you bring up two little
squares and that those two little squares the inner square is the square
that will actually be tracked by After Effects and the outer square that is the
square that aftereffects will lock pixels either side it will search around
the area looking for that tracking point if it loses it or the tracking point in
the actual tracking point in the middle can't find it so all do is we grab that
make it the right size we've grabbed that and we drag that onto the point
that we want to track in this case my ring and we just make sure this over
that and then from that point on we sort of just the size of the square make sure
that it's all I want it to look go across to tracking and then we once
we're at tracking we just click analyze forward which is a little play button
which is going the play way there's two one going one way one going the other
one is track back when he's track forward and at that point there we just
literally sit and we think whose cross that it will analyze I will
stay in position and follow where that tracking point goes it can and off the
door lose tracking point and at that point what we have to do then is we go
in and we do that manually so as we can see it has lost the tracking point from
that point so what we have to do now is hit you and our keyboard that brings up
all the little tracking points as you can see from this video here we've got
all those little points going up and at that point then we can move it back
frame by frame and we can then go along and we can just find a frame where it
has gap it's got the last frame it got the tracking point and the next frame on
we just grab the box and we just drag it along one frame and we just completely
do that continue to do that and we continue to do that until we've got to
the end of where we need to be for our tracking motion and we just do that one
frame at a time seems like a lot of work to be fair it takes a few minutes at
most if that it's a pretty easy process to do so click and drag click and drag
it's not a massive amount of onerous work so once we've done that we go to
the very first frame that we tracked and we select the play backwards that would
analyze backwards button and we do the whole process again which basically
underlies it backwards and it then moves us to the front of the frame so once
we've adjusted everything we just go up to apply and then the little box comes
up the next way you just click OK on that and don't worry about what that
says and that sets in stone those tracking points we can then click you on
our keyboard get rid of those tracking points and at that point then we can
then go to adding the next step in our process and that is to add in our logo
so we've got our After Effects logo drag that into the comp I'm just going to
drop that straight onto the system and there is bring it to the top so we can
see it it's gonna be massive because obviously it's a huge file so what I'll
do is I'll just go quickly in and to transform and we'll just reduce the size
of it so that it fits within our comp there we
go now we've got some handles so we can
actually just manually drag those and make it as small or as big as we like we
can also hit shift and if we all shift down that will constrain the proportions
so all I'll do is we'll bring it up the footage to the point where we want to
track it so we know how big it's going to be and we'll just set our logo into
the right place between those two fingers between that pinch point and
then what we can do is we can set it to the correct size so once it's set to the
correct size we can then use that little swirly tool which is called the pic
width L of the cell on that word pick whip whip whip in quick whip and we can
just drag that and we can drag it on to the null object and once we've dragged
up to null object it basically sets the logo to match everything that that null
object is doing and that null object contains our tracking data so we'll
resize it from work web flow point of view and we'll make everything the same
length and then at that point when we played through as my hand comes up you
will see that the logo also matches where my hand is it's not quite right
there's quite the right size so from that point there what I can do is I can
just pause the video and I can just select the logo and I can just rearrange
the size that's not altering the tracking data at all it's just making
the logo bigger or smaller and then from that also once we've got that logo
moving about on the on the screen we can see we can alter it and we can change
slight variations of things such as opacity or motion blur etc etc etc so
for me what I'm gonna do here is I'm going to change the motion blur because
I think that it needs a little bit of motion to it it needs to look like it's
moving and it needs to look like he's part of the video but also need to
change the opacity as well because as you can see it doesn't fall clean off
the screen it just sits at the bottom looking a little bit weird like a little
bit half a little go peeking out so I'll do is I'll add a couple of key frames in
and from that point there I'll put keyframe at a hundred percent and I'll
stick another keyframe in further down and we'll make that zero percent so that
means when it goes it's gonna drag through and it's gonna disappear as it
comes off the screen and I'll do exactly the same at the beginning I'll put a 0%
opacity or at the beginning and then about maybe ten or twelve
frames forward stick 100% on so that it appears as my fingers turning to a pinch
so come up a pinch and it will look like it's appearing the minute as you can see
it's at about 17% so drag it down to zero and then as we get to the pinch
there I put another keyframe in and that will make it 100% stick a keyframe in
there and a hundred percent if there as you can see it disappears and appears as
I'm talking now motion blur you cannot motion blur to it and that
will be done that's done it's nice and easy to do it's basically a little icon
along the side here which looks like little circles you can click on those
and that will have motion blur to it now motion blur is not active in After
Effects by default because it is massively processor-intensive you have
to switch it on by using that little icon there and you basically what I
would do is I would switch it on view it in motion blur switch you back off again
carry on working because let's be fair about it your computer will catch fire
if you keep it on all the time and that basically is it guys so it's pretty
simple to do it's a pretty easy pretty easy tutorial it's a pretty easy process
it sounds more complicated than actually is it isn't really that complicated
there is another way of doing it which I'll cover in a later video which is 3d
tracking which is a more interest in a more intricate way of doing things it's
actually probably a little bit easier but it's good to know all the different
ways that it can be done so if you did like this tutorial and you thought it
was useful please do like and subscribe below and click that like button
clicking the bell icon so you get notifications so that you know that when
new videos come out and I will see you guys next time
you