﻿1
00:00:08,480 --> 00:00:10,480
Hello, and welcome back  to the seventh video 

2
00:00:10,480 --> 00:00:12,520
in our after effects series. 

3
00:00:12,520 --> 00:00:17,000
Today we're going to learn  how to motion track our video

4
00:00:17,000 --> 00:00:18,520
and link our text 

5
00:00:18,520 --> 00:00:21,440
to that tracking position. 

6
00:00:21,440 --> 00:00:23,760
So going back on  what we've learned so far,  I'm just going to hit 

7
00:00:23,760 --> 00:00:24,920
the transparency grid 

8
00:00:24,920 --> 00:00:27,600
to ensure that this typography text

9
00:00:27,600 --> 00:00:30,120
composition has a alpha background,

10
00:00:30,120 --> 00:00:31,520
which it does have, then 

11
00:00:31,520 --> 00:00:34,000
I'm going to go back to my bin

12
00:00:34,000 --> 00:00:35,880
and just drag in our footage 

13
00:00:35,880 --> 00:00:38,040
and place it underneath  our typography layer. 

14
00:00:38,040 --> 00:00:39,920
I'm going to click on my type 

15
00:00:39,920 --> 00:00:43,320
and just hit U to get rid of all the key

16
00:00:43,320 --> 00:00:44,560
frames and properties, I'm 

17
00:00:44,560 --> 00:00:46,400
going to click on the audio 

18
00:00:46,400 --> 00:00:47,640
to make sure there's 

19
00:00:47,640 --> 00:00:49,480
no audio on my video track 

20
00:00:49,480 --> 00:00:51,800
and then I'm going to solo my video track

21
00:00:51,800 --> 00:00:53,600
so nothing else is above it 

22
00:00:53,600 --> 00:00:56,000
and nothing is distracting.

23
00:00:56,000 --> 00:00:59,600
So now let's start our motion tracking

24
00:00:59,600 --> 00:01:00,680
on the right hand side, 

25
00:01:00,680 --> 00:01:02,160
where our effects and presets 

26
00:01:02,160 --> 00:01:03,720
are, we'll just close that off by clicking it 

27
00:01:03,720 --> 00:01:06,960
you'll find a tracker. 

28
00:01:06,960 --> 00:01:11,240
Now we have track  camera, warp stabilizer,  track motion or stabilize motion. 

29
00:01:11,240 --> 00:01:13,360
And what we're trying to do in  this case is track 

30
00:01:13,360 --> 00:01:15,520
the motion in our frame, 

31
00:01:15,520 --> 00:01:18,160
then link the text to that motion.

32
00:01:18,160 --> 00:01:19,720
And if we just scrub 

33
00:01:19,720 --> 00:01:21,280
through our timeline, 

34
00:01:21,280 --> 00:01:23,320
I can see that

35
00:01:23,320 --> 00:01:26,240
the neck of the guitar here

36
00:01:26,240 --> 00:01:28,600
is a nice sort of fluid 

37
00:01:28,600 --> 00:01:29,880
up and down movement. 

38
00:01:29,880 --> 00:01:31,200
It's not too aggressive. 

39
00:01:31,200 --> 00:01:33,520
There's not too much motion blur there.

40
00:01:33,520 --> 00:01:34,840
Unlike his fingers here, 

41
00:01:34,840 --> 00:01:36,520
which go up and down 

42
00:01:36,520 --> 00:01:38,160
the neck of the guitar, 

43
00:01:38,160 --> 00:01:39,840
too much motion blur there 

44
00:01:39,840 --> 00:01:42,800
I feel for after effects of pick that up

45
00:01:42,800 --> 00:01:45,120
and it goes slightly out of focus.

46
00:01:45,120 --> 00:01:45,960
So what I'm going to do 

47
00:01:45,960 --> 00:01:47,320
is I'm going to use this point 

48
00:01:47,320 --> 00:01:50,560
of the guitar just up here,

49
00:01:50,560 --> 00:01:52,720
for after effects, to try to track 

50
00:01:52,720 --> 00:01:54,880
just ensuring it  stays in the frame at all times, 

51
00:01:54,880 --> 00:01:57,200
which it does just until the end 

52
00:01:57,200 --> 00:02:01,000
where it disappears, which should be OK. 

53
00:02:01,000 --> 00:02:03,320
So in order for us to do this,

54
00:02:03,320 --> 00:02:05,360
we need to click on the layer

55
00:02:05,360 --> 00:02:06,520
that we require, I'm 

56
00:02:06,520 --> 00:02:08,520
just going to turn off my title

57
00:02:08,520 --> 00:02:09,960
and action safe guides there. 

58
00:02:09,960 --> 00:02:12,000
So we need to go over here,

59
00:02:12,000 --> 00:02:13,760
and it's a click track emotion 

60
00:02:13,760 --> 00:02:15,760
and you'll find out what happens here

61
00:02:15,760 --> 00:02:18,080
is it takes us away from our composition

62
00:02:18,080 --> 00:02:22,040
onto the layer itself which is C0017.

63
00:02:22,040 --> 00:02:22,800
Now, as always, 

64
00:02:22,800 --> 00:02:24,320
we should rename this layer 

65
00:02:24,320 --> 00:02:25,720
so I'll just go ahead and do that 

66
00:02:25,720 --> 00:02:30,680
once again and call that guitar.

67
00:02:30,680 --> 00:02:32,240
So I need to pick my point, 

68
00:02:32,240 --> 00:02:33,840
which I went after effects the track. 

69
00:02:33,840 --> 00:02:35,280
Ensuring I have my selection tool, 

70
00:02:35,280 --> 00:02:37,440
or V on the keyboard selected,

71
00:02:37,440 --> 00:02:39,960
I'm just going to zoom in using

72
00:02:39,960 --> 00:02:42,760
the scroll wheel on my mouse

73
00:02:42,760 --> 00:02:44,760
and move this election point 

74
00:02:44,760 --> 00:02:47,400
over to the part of the guitar

75
00:02:47,400 --> 00:02:49,400
which I want it to track.

76
00:02:49,400 --> 00:02:51,200
It was actually the next 

77
00:02:51,200 --> 00:02:52,880
next one along here. 

78
00:02:52,880 --> 00:02:54,560
What these two boxes 

79
00:02:54,560 --> 00:02:57,080
represent is the inside box is

80
00:02:57,080 --> 00:02:59,640
what aftereffects is going to track

81
00:02:59,640 --> 00:03:01,320
and the outside box 

82
00:03:01,320 --> 00:03:03,840
as what after effects will reference

83
00:03:03,840 --> 00:03:07,440
to find that tracking point.

84
00:03:07,440 --> 00:03:10,720
So let's just see

85
00:03:10,720 --> 00:03:14,720
and go ahead, see if this works.

86
00:03:14,720 --> 00:03:17,440
Zooming back out, fit, 

87
00:03:17,440 --> 00:03:19,280
we have a couple of options here 

88
00:03:19,280 --> 00:03:20,200
to track the motion. 

89
00:03:20,200 --> 00:03:20,960
We have analyze one 

90
00:03:20,960 --> 00:03:22,840
frame backwards, analyze backwards, 

91
00:03:22,840 --> 00:03:24,760
analyze forwards and analyze 

92
00:03:24,760 --> 00:03:26,000
one frame forwards. 

93
00:03:26,000 --> 00:03:27,760
I'm going to go ahead and analyze 

94
00:03:27,760 --> 00:03:29,320
the entire eight seconds of our clip. 

95
00:03:29,320 --> 00:03:30,600
And let's see what happens. 

96
00:03:30,600 --> 00:03:31,880
I will speed this up 

97
00:03:31,880 --> 00:03:33,640
so you're not waiting for my computer 

98
00:03:33,640 --> 00:03:35,200
to go through this and generate 

99
00:03:35,200 --> 00:03:41,280
all the key frames for us.

100
00:03:41,280 --> 00:03:43,960
So as we can see here, 

101
00:03:43,960 --> 00:03:45,080
it tracks it quite well 

102
00:03:45,080 --> 00:03:48,800
until about this point where it goes off

103
00:03:48,800 --> 00:03:55,000
tracking it fine all the way through here

104
00:03:55,000 --> 00:03:58,960
and then it goes off again 

105
00:03:58,960 --> 00:04:01,800
just there,  so we can actually fix this ourselves. 

106
00:04:01,800 --> 00:04:03,880
We can hit U on our keyboard. 

107
00:04:03,880 --> 00:04:06,960
And these are all the key frames 

108
00:04:06,960 --> 00:04:09,120
after effects has determined 

109
00:04:09,120 --> 00:04:11,080
by trying to track it. 

110
00:04:11,080 --> 00:04:12,800
So let's zoom in by holding Alt 

111
00:04:12,800 --> 00:04:15,200
and scrolling on our mouse wheel,

112
00:04:15,200 --> 00:04:19,280
take a closer look on which frame

113
00:04:19,280 --> 00:04:21,080
it didn't like, which  it was this one here 

114
00:04:21,080 --> 00:04:24,680
so I can simply click on my box

115
00:04:24,680 --> 00:04:27,160
I can track it back 

116
00:04:27,160 --> 00:04:33,800
to the point I want it to track. 

117
00:04:33,800 --> 00:04:39,560
Excellent stuff. 

118
00:04:39,560 --> 00:04:41,320
So again I'll zoom out on our time line 

119
00:04:41,320 --> 00:04:42,280
ALT and mouse scroll 

120
00:04:42,280 --> 00:04:45,920
wheel, we'll just go through it

121
00:04:45,920 --> 00:04:47,720
and we have a good 

122
00:04:47,720 --> 00:04:50,960
five and a half seconds. 

123
00:04:50,960 --> 00:04:52,040
So we could go through 

124
00:04:52,040 --> 00:04:53,680
and fix the end of this track 

125
00:04:53,680 --> 00:04:55,160
but I don't need to do that myself, 

126
00:04:55,160 --> 00:04:56,160
so what we need to do 

127
00:04:56,160 --> 00:04:57,040
now is we need to link 

128
00:04:57,040 --> 00:04:59,240
all of these key frame properties 

129
00:04:59,240 --> 00:05:00,880
to something within our composition. 

130
00:05:00,880 --> 00:05:02,160
And the way we do it is we create 

131
00:05:02,160 --> 00:05:04,200
something called a null object,

132
00:05:04,200 --> 00:05:07,280
a null object is essentially a layer

133
00:05:07,280 --> 00:05:08,720
which you can pin things to 

134
00:05:08,720 --> 00:05:10,400
and then you can parent something else 

135
00:05:10,400 --> 00:05:11,280
to that null object 

136
00:05:11,280 --> 00:05:14,160
to take on that property.

137
00:05:14,160 --> 00:05:14,760
So I'm going to go up 

138
00:05:14,760 --> 00:05:16,600
to the top of our window here. 

139
00:05:16,600 --> 00:05:21,640
Go to layer, new, null object.

140
00:05:21,640 --> 00:05:24,000
And there we go that's been created.

141
00:05:24,000 --> 00:05:25,000
In our tracker 

142
00:05:25,000 --> 00:05:27,360
we need to edit our target now.

143
00:05:27,360 --> 00:05:29,400
So it's not our video layer,

144
00:05:29,400 --> 00:05:31,080
but actually our null object 

145
00:05:31,080 --> 00:05:33,480
that it applies the key frames to.

146
00:05:33,480 --> 00:05:35,160
So let's change our layer 

147
00:05:35,160 --> 00:05:37,360
to the null object. 

148
00:05:37,360 --> 00:05:40,360
OK, so now if we apply that

149
00:05:40,360 --> 00:05:45,320
You can apply X and Y dimensions.

150
00:05:45,320 --> 00:05:47,920
Now we're back in our composition

151
00:05:47,920 --> 00:05:50,360
and you can see our null object

152
00:05:50,360 --> 00:05:54,200
has all of the key frames attached to it.

153
00:05:54,200 --> 00:05:58,040
So I'm just going to trim our null object

154
00:05:58,040 --> 00:06:01,360
when the track doesn't  stick to the right part of the video

155
00:06:01,360 --> 00:06:06,160
by clicking ALT and close bracket.

156
00:06:06,160 --> 00:06:10,960
Going to un solo those two.

157
00:06:10,960 --> 00:06:13,640
I'm going to link our typography

158
00:06:13,640 --> 00:06:16,040
layer to our null object

159
00:06:16,040 --> 00:06:21,320
by using the pick whip.

160
00:06:21,320 --> 00:06:23,880
So now we can see

161
00:06:23,880 --> 00:06:25,520
our typography layer follows

162
00:06:25,520 --> 00:06:29,280
the motion of the guitar itself.

163
00:06:29,280 --> 00:06:30,120
In the next video

164
00:06:30,120 --> 00:06:31,280
will look at more advanced

165
00:06:31,280 --> 00:06:32,560
masking techniques as well 

166
00:06:32,560 --> 00:06:36,120
as bringing in other assets.
