Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,566 --> 00:00:02,066
In this lesson,
2
00:00:02,066 --> 00:00:09,566
we're going to learn how you can apply your tracking data with a transform node.
3
00:00:09,566 --> 00:00:12,565
OK so we're right here where we left off in our last lesson.
4
00:00:12,566 --> 00:00:17,566
And now I'm ready to go ahead and show you how to use this tracking data.
5
00:00:17,566 --> 00:00:20,566
Now there's a few things that we need to do first.
6
00:00:20,566 --> 00:00:21,950
So, the thing that I want to move around,
7
00:00:21,950 --> 00:00:27,566
we need to go ahead and bring in to our Nuke project.
8
00:00:27,566 --> 00:00:31,566
So let's go ahead and grab that reference file folder again.
9
00:00:31,566 --> 00:00:35,565
And I'm going to use the attack_of_the_zombies_small.
10
00:00:35,566 --> 00:00:42,566
So go ahead and just grab that folder and drag it on to your node graph.
11
00:00:42,566 --> 00:00:46,566
And you can see that our viewer automatically hooked onto that.
12
00:00:46,566 --> 00:00:49,566
But we can't really see it right now.
13
00:00:49,566 --> 00:00:50,899
If I scrub forward a little bit, though,
14
00:00:50,899 --> 00:00:54,566
you can see kind of how this fades on over time.
15
00:00:54,566 --> 00:00:56,565
So we just have this little banner.
16
00:00:56,566 --> 00:01:00,258
So let's go ahead now and take a look at what these
17
00:01:00,258 --> 00:01:03,566
two pieces look like together.
18
00:01:03,566 --> 00:01:05,816
Now before we start adding a lot more nodes,
19
00:01:05,816 --> 00:01:10,566
one of things we didn't do in our last lesson was to set our project size.
20
00:01:10,566 --> 00:01:15,566
So we haven't really done anything yet that's going to be detrimental to that.
21
00:01:15,566 --> 00:01:19,566
But we need to do it before we add in any merge nodes or any transform nodes.
22
00:01:19,566 --> 00:01:21,399
So we're going to come over here and just hover over
23
00:01:21,399 --> 00:01:24,566
your Properties bin and hit the S key.
24
00:01:24,566 --> 00:01:27,565
And you can see that right now the full sized format is what it's defaulting to.
25
00:01:27,566 --> 00:01:28,566
So that's way too big.
26
00:01:28,566 --> 00:01:31,316
And that's going to start to throw things off once we
27
00:01:31,316 --> 00:01:33,566
add some more size specific nodes.
28
00:01:33,566 --> 00:01:37,656
So go ahead and drop that down and we'll just choose that 1280 by
29
00:01:37,656 --> 00:01:42,566
720 because that's the size of that zombie plate.
30
00:01:42,566 --> 00:01:47,566
744 by 388 is kind of a strange size of that animated banner I just showed you.
31
00:01:47,566 --> 00:01:48,566
So that would be too small.
32
00:01:48,566 --> 00:01:50,565
We don't want to select that.
33
00:01:50,566 --> 00:01:51,566
So go ahead, choose that.
34
00:01:51,566 --> 00:01:54,565
And that's going to help just when other nodes are being
35
00:01:54,566 --> 00:01:56,566
created that they're made at the right size.
36
00:01:56,566 --> 00:01:59,565
So let's go and just clear the Properties bin.
37
00:01:59,566 --> 00:02:08,566
And now what I want to do is look at my banner on top of my zombie footage.
38
00:02:08,566 --> 00:02:12,565
So what we're going to do to show those together is to use a merge node.
39
00:02:12,566 --> 00:02:16,565
So you can just come down here, just hover in the empty area in your node graph,
40
00:02:16,565 --> 00:02:17,565
and hit the Tab key.
41
00:02:17,566 --> 00:02:20,066
And we'll type in 'merge.
42
00:02:20,066 --> 00:02:26,566
' And then to hook these in together, we want our zombie to be our background.
43
00:02:26,566 --> 00:02:28,566
So we'll hook that into the B pipe.
44
00:02:28,566 --> 00:02:31,566
And you can just hook that right into the tracker, that'll work just fine.
45
00:02:31,566 --> 00:02:33,566
You don't have to hook it into the tracker.
46
00:02:33,566 --> 00:02:36,566
But you could just hook it straight into the read node.
47
00:02:36,566 --> 00:02:38,566
It's going to work either way.
48
00:02:38,566 --> 00:02:43,566
And then we'll hook our A pipe into our foreground, which will be that banner.
49
00:02:43,566 --> 00:02:45,566
And just to get a little more organized,
50
00:02:45,566 --> 00:02:48,565
let's go ahead and have our B pipe pointing straight down.
51
00:02:48,566 --> 00:02:51,950
And let's go ahead and move the read node down so
52
00:02:51,950 --> 00:02:54,566
that the A pipe is straight across.
53
00:02:54,566 --> 00:02:57,788
Then in a minute we'll have a few other things in between these,
54
00:02:57,788 --> 00:02:59,566
and we'll probably move this around some more.
55
00:02:59,566 --> 00:03:03,412
OK so let's connect that view note onto our merge
56
00:03:03,412 --> 00:03:05,566
node so we can see them together.
57
00:03:05,566 --> 00:03:08,232
Now right away we don't see anything because,
58
00:03:08,232 --> 00:03:10,565
you remember, this is blank at the beginning.
59
00:03:10,566 --> 00:03:16,566
So let's scrub forward and you can see this comes on over time.
60
00:03:16,566 --> 00:03:22,899
So what I want to happen is I want that banner to move with that
61
00:03:22,899 --> 00:03:25,566
tracking data that we got from our zombie.
62
00:03:25,566 --> 00:03:29,565
I just want it to be in front of him here and just follow
63
00:03:29,566 --> 00:03:33,929
along with the movement of his head and,
64
00:03:33,929 --> 00:03:35,565
therefore, his body.
65
00:03:35,566 --> 00:03:38,566
Just across the frame.
66
00:03:38,566 --> 00:03:42,566
So what we need to do is add in a transform node.
67
00:03:42,566 --> 00:03:46,566
So you go ahead and come over here to your Transform button.
68
00:03:46,566 --> 00:03:49,566
Click and hold and hit transform.
69
00:03:49,566 --> 00:03:53,020
And it because I had the attack of the zombies selected,
70
00:03:53,020 --> 00:03:58,166
it went ahead and just added in a transform node for me
71
00:03:58,166 --> 00:04:00,566
in the place I wanted on my pipe.
72
00:04:00,566 --> 00:04:04,766
But if it didn't put it for you, if you didn't have that selected,
73
00:04:04,766 --> 00:04:06,565
you can just drop it in here in between.
74
00:04:06,566 --> 00:04:11,149
Now you will not have your center in the center of
75
00:04:11,149 --> 00:04:12,565
the banner if you do it that way.
76
00:04:12,566 --> 00:04:17,149
So you'll have to go back in and figure out exactly
77
00:04:17,149 --> 00:04:18,566
what the center of that should be.
78
00:04:18,565 --> 00:04:22,027
Which just to show you how to do that,
79
00:04:22,027 --> 00:04:26,566
this area right here in the lower left hand corner is going to be zero zero.
80
00:04:26,566 --> 00:04:31,566
So if you just look at the read node for your attack of the zombies,
81
00:04:31,566 --> 00:04:33,566
that's 744 by 388.
82
00:04:33,566 --> 00:04:38,316
You can just divide each of those by two and that's going to be what
83
00:04:38,316 --> 00:04:41,566
your center point of the transform node should be.
84
00:04:41,566 --> 00:04:44,566
Which is what you can see that is right there.
85
00:04:44,566 --> 00:04:48,565
372 is half of 744, 169 is half of 338.
86
00:04:48,566 --> 00:04:52,565
So that puts that cross hair for the transform node right in the center.
87
00:04:52,566 --> 00:04:55,566
So a little bit easier just to have the node you want
88
00:04:55,566 --> 00:04:57,565
selected first before you drop that in.
89
00:04:57,566 --> 00:05:00,335
But that's going to just help you later on as you do
90
00:05:00,335 --> 00:05:02,565
more tracking to know how to fix that.
91
00:05:02,566 --> 00:05:05,566
Just if you forget to have the right one selected.
92
00:05:05,566 --> 00:05:09,565
OK enough talk let's go ahead and get this tracking.
93
00:05:09,566 --> 00:05:13,565
So I want to go ahead and let's open back up that
94
00:05:13,566 --> 00:05:16,566
transform node so we have that data available.
95
00:05:16,566 --> 00:05:24,566
And really all we have to do is simply link from the tracker to the transform.
96
00:05:24,566 --> 00:05:28,565
And we can do that just by coming up here to Translate,
97
00:05:28,566 --> 00:05:31,104
which is what's going to move the x and y position,
98
00:05:31,104 --> 00:05:32,566
the up and down, the left to right.
99
00:05:32,566 --> 00:05:34,020
Which is the only thing that we tracked,
100
00:05:34,020 --> 00:05:37,566
we didn't track any rotation or scale in our last lesson.
101
00:05:37,566 --> 00:05:39,566
So just come up here to where you see the Animation menu,
102
00:05:39,566 --> 00:05:41,565
that's this little squiggly line button.
103
00:05:41,566 --> 00:05:44,565
We're going to right click that and go to Link To.
104
00:05:44,566 --> 00:05:46,656
Now after that you can't really see this in my recording,
105
00:05:46,656 --> 00:05:47,816
so I'm going to pull this over just so you're able
106
00:05:47,816 --> 00:05:49,566
to see all the buttons I click.
107
00:05:49,566 --> 00:05:54,566
Right click that, go to Link To, choose Tracker 1, and then choose to Track 1.
108
00:05:54,566 --> 00:05:59,565
Now that's going to link it directly to the tracking data that we had.
109
00:05:59,566 --> 00:06:02,565
But we have a little bit of a problem.
110
00:06:02,566 --> 00:06:08,566
And that is that the middle is kind of offset from our zombies head.
111
00:06:08,566 --> 00:06:13,111
Now, the reason for this is because our sign here,
112
00:06:13,111 --> 00:06:14,166
our little banner,
113
00:06:14,166 --> 00:06:18,232
is a different size and has a different center from the
114
00:06:18,232 --> 00:06:21,565
large size of our background here.
115
00:06:21,566 --> 00:06:25,566
So it's in the proper place down here on the corner of his head.
116
00:06:25,566 --> 00:06:27,565
You can see the corners with that.
117
00:06:27,566 --> 00:06:29,873
But if you want the middle to be in here,
118
00:06:29,873 --> 00:06:33,765
there's lots of different kinds of math you can do and
119
00:06:33,765 --> 00:06:35,566
some expressions you can link up.
120
00:06:35,566 --> 00:06:36,566
But personally,
121
00:06:36,566 --> 00:06:40,565
because we track this area doesn't necessarily mean that's
122
00:06:40,565 --> 00:06:43,565
exactly the area I want this to stick to.
123
00:06:43,566 --> 00:06:45,565
I can't even really read this.
124
00:06:45,566 --> 00:06:50,293
So I found the easiest way to move this once you have that data linked,
125
00:06:50,293 --> 00:06:54,566
like we just did, is to simply add another transform node.
126
00:06:54,566 --> 00:06:57,566
So what I'm gonna do is, let's just move this up here.
127
00:06:57,566 --> 00:07:00,566
And we'll pull this transform node up.
128
00:07:00,566 --> 00:07:04,565
And then we'll just add in another transformer on this A pipe.
129
00:07:04,566 --> 00:07:10,566
So you just hit the Tab key, type in transform.
130
00:07:10,566 --> 00:07:13,566
And then let's move this one down just so that A pipe stays straight.
131
00:07:13,566 --> 00:07:15,566
And now you can see we have a transform node down here.
132
00:07:15,566 --> 00:07:18,929
Now it's not necessarily going to be in the right to position,
133
00:07:18,929 --> 00:07:22,566
but it's going to allow you to move this around.
134
00:07:22,566 --> 00:07:26,565
So it's not up here where it's a little easier to see.
135
00:07:26,566 --> 00:07:29,066
But let's just go ahead and clear the Properties bin for a second just
136
00:07:29,066 --> 00:07:31,566
so we get rid of anything that might be confusing.
137
00:07:31,566 --> 00:07:34,566
Then we'll double click that Transform To.
138
00:07:34,566 --> 00:07:37,899
And then you can just see I can click and drag this and just
139
00:07:37,899 --> 00:07:40,565
place that right on top of the zombie.
140
00:07:40,566 --> 00:07:40,816
Now,
141
00:07:40,816 --> 00:07:43,316
one of things you might notice right away is that
142
00:07:43,316 --> 00:07:45,565
this has a big black background.
143
00:07:45,566 --> 00:07:49,565
So to fix that we can go into our Merge node and change the
144
00:07:49,566 --> 00:07:53,565
operation from over to screen or plus.
145
00:07:53,566 --> 00:07:54,566
Either one of those would work.
146
00:07:54,566 --> 00:07:58,566
So you can see, not really much of a difference there.
147
00:07:58,566 --> 00:08:00,566
And then we could just play this through.
148
00:08:00,566 --> 00:08:04,137
And it follows along with our zombie, uses that tracking data,
149
00:08:04,137 --> 00:08:07,565
and just overall looks really nice.
150
00:08:07,566 --> 00:08:11,796
He has so much motion in his head that it really
151
00:08:11,796 --> 00:08:14,966
makes this look very interesting, kind of a stylized look,
152
00:08:14,966 --> 00:08:17,566
how that follows along with him.
153
00:08:17,566 --> 00:08:22,566
So there's a lot of different ways to do things in Nuke.
154
00:08:22,566 --> 00:08:25,566
And this is not the only way to hook up a tracker.
155
00:08:25,566 --> 00:08:30,565
There's different ways, really a lot of different ways to do this.
156
00:08:30,566 --> 00:08:34,566
But this is one of my favorite ways because it's the most straightforward.
157
00:08:34,566 --> 00:08:39,766
So you we're basically using one transform node to translate that
158
00:08:39,766 --> 00:08:45,566
data from the tracker to move our sign around here.
159
00:08:45,566 --> 00:08:47,565
Just kind of in the up and down and side to side.
160
00:08:47,566 --> 00:08:52,111
But then to get the whole thing to track in a position that makes sense,
161
00:08:52,111 --> 00:08:55,565
where we can read the whole sign, we'd simply use another transform node.
162
00:08:55,566 --> 00:08:58,566
And that's a really powerful benefit that Nuke has.
163
00:08:58,566 --> 00:09:03,566
In other programs, you're not going to have that much control.
164
00:09:03,566 --> 00:09:06,899
And in Nuke you can simply add another node and
165
00:09:06,899 --> 00:09:08,566
that just cleans that up for you.
166
00:09:08,566 --> 00:09:11,265
Now if you're concerned about having too many nodes,
167
00:09:11,265 --> 00:09:12,565
again, there's other ways of doing this.
168
00:09:12,566 --> 00:09:14,565
I'm not saying this is the only way to do it.
169
00:09:14,566 --> 00:09:17,566
But this is pretty easy.
170
00:09:17,566 --> 00:09:22,566
So I would definitely recommend this as a workflow for you.
171
00:09:22,566 --> 00:09:26,899
So, now we know how to track and we know how to apply our data,
172
00:09:26,899 --> 00:09:29,566
just with a one point track like this.
173
00:09:29,566 --> 00:09:34,566
We probably should learn how to smooth some data out.
174
00:09:34,566 --> 00:09:37,565
So sometimes you're going to run into a problem where your
175
00:09:37,566 --> 00:09:39,566
tracker's going to get a little bit jittery.
176
00:09:39,566 --> 00:09:41,566
So there's a couple ways to fix that.
177
00:09:41,566 --> 00:09:47,566
And I'm going to show you how to do those in the next lesson.
15782
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.