Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,000 --> 00:00:04,555
Let's now talk about animating some of these values inside NUKE,
2
00:00:04,555 --> 00:00:08,282
and we go about doing that by setting keyframes.
3
00:00:08,282 --> 00:00:11,517
Now if you've used another animation package in the past or
4
00:00:11,517 --> 00:00:13,282
if you've animated in another program,
5
00:00:13,282 --> 00:00:18,082
you know that keyframes are basically just data assigned
6
00:00:18,082 --> 00:00:21,282
to specific frames in our animation,
7
00:00:21,282 --> 00:00:24,059
and the computer just uses that data on those different
8
00:00:24,059 --> 00:00:26,282
frames to decide how to move the picture.
9
00:00:26,282 --> 00:00:31,071
So let's say we want to transform this earth with the Transform node,
10
00:00:31,071 --> 00:00:33,281
and we want it to rotate.
11
00:00:33,282 --> 00:00:38,009
Well let's go ahead and let's set the time slider back to one,
12
00:00:38,009 --> 00:00:42,740
and we're going to say, this is the natural resting state of the picture.
13
00:00:42,740 --> 00:00:45,948
So we want to set a keyframe of a 0 rotation,
14
00:00:45,948 --> 00:00:48,281
like we have right here, at frame 1.
15
00:00:48,282 --> 00:00:52,948
So, being on frame one, we want to click on this icon and say Set key,
16
00:00:52,948 --> 00:00:55,600
and this box is going to turn bright blue,
17
00:00:55,600 --> 00:00:58,782
telling us that we have a keyframe on frame one,
18
00:00:58,782 --> 00:01:02,282
and you see a little blue tick here to indicate that
19
00:01:02,282 --> 00:01:04,108
that frame has animation on it.
20
00:01:04,108 --> 00:01:09,281
Now on the timeline I want you to go to frame 60 and click on frame 60,
21
00:01:09,282 --> 00:01:12,827
and you'll notice that the box that we set a keyframe in goes
22
00:01:12,827 --> 00:01:15,281
from being a bright blue to a dim blue,
23
00:01:15,282 --> 00:01:20,018
and the dim blue just means that this property has
24
00:01:20,018 --> 00:01:24,281
animation on it at some point in the timeline,
25
00:01:24,282 --> 00:01:28,472
but this particular frame doesn't have a keyframe on it yet.
26
00:01:28,472 --> 00:01:34,186
So, we're going to set a keyframe on frame 60 by just changing this value.
27
00:01:34,186 --> 00:01:40,281
I'm going to change it to 180 and you'll see that this box turns bright blue.
28
00:01:40,282 --> 00:01:46,059
Now since we've already added animation to this attribute by setting a key,
29
00:01:46,059 --> 00:01:49,215
NUKE knows that whenever this value changes,
30
00:01:49,215 --> 00:01:52,015
it should lay down another keyframe.
31
00:01:52,015 --> 00:01:55,282
Now go ahead and scrub the timeline.
32
00:01:55,282 --> 00:01:58,094
Scrubbing the timeline just means left-mouse button clicking anywhere
33
00:01:58,094 --> 00:02:01,567
in the timeline and just dragging it back and forth,
34
00:02:01,567 --> 00:02:05,424
and you'll see that now our picture is animated,
35
00:02:05,424 --> 00:02:06,282
it's rotating.
36
00:02:06,282 --> 00:02:09,463
Now I'd like to pause for a minute here to tell you about interpolation,
37
00:02:09,463 --> 00:02:13,615
and I don't want to get too much into it because we'll examine it in
38
00:02:13,615 --> 00:02:17,282
another module later when we dive deep into the Curve Editor.
39
00:02:17,282 --> 00:02:20,554
But right now I want to let you know that what the
40
00:02:20,554 --> 00:02:23,811
computer's doing with these values that we gave it on these
41
00:02:23,811 --> 00:02:25,929
keyframes is called interpolation,
42
00:02:25,929 --> 00:02:31,752
and it's essentially taking the data we gave it with this
43
00:02:31,752 --> 00:02:35,781
keyframe on frame number one and the data that we gave it
44
00:02:35,781 --> 00:02:37,691
on the keyframe on frame 60,
45
00:02:37,691 --> 00:02:40,837
and it's determining what the value of this attribute
46
00:02:40,837 --> 00:02:44,337
should be from frame to frame as it goes,
47
00:02:44,337 --> 00:02:46,281
and that's just called interpolation.
48
00:02:46,282 --> 00:02:51,282
That way you don't have to give it a specific keyframe for every frame along
49
00:02:51,282 --> 00:02:54,615
the timeline so that you're not animating frame by frame,
50
00:02:54,615 --> 00:02:59,282
the computer's just kind of taking the beginning value and taking the end value,
51
00:02:59,282 --> 00:03:03,108
and determining how to get from A to B for you.
52
00:03:03,108 --> 00:03:07,282
So let's go in here and add a couple of more keyframes,
53
00:03:07,282 --> 00:03:10,198
I'm going to go to frame 25,
54
00:03:10,198 --> 00:03:15,198
and you can also right-click in this box and the same options
55
00:03:15,198 --> 00:03:18,545
pop up as pop up in this animation button.
56
00:03:18,545 --> 00:03:23,282
So sometimes I like to just go to the attribute itself and say Set key,
57
00:03:23,282 --> 00:03:26,673
I'm going to go to frame 50, I'm going to set another key,
58
00:03:26,673 --> 00:03:29,573
we're just setting a couple of random keys in here so
59
00:03:29,573 --> 00:03:32,198
that I can how you how to delete keys.
60
00:03:32,198 --> 00:03:35,406
Now that we've got a couple of different keys in there,
61
00:03:35,406 --> 00:03:37,499
you can go to a selected key.
62
00:03:37,499 --> 00:03:39,629
So let's go back to frame 25,
63
00:03:39,629 --> 00:03:42,673
and if you want to delete that you can just
64
00:03:42,673 --> 00:03:44,782
right-click up here and say Delete key,
65
00:03:44,782 --> 00:03:48,982
and you'll notice that the little blue tick goes away and that means that
66
00:03:48,982 --> 00:03:51,860
we've deleted the keyframe on that particular frame,
67
00:03:51,860 --> 00:03:56,853
and you'll notice that this box turns back into a dim blue box,
68
00:03:56,853 --> 00:03:59,710
signaling that there's still animation,
69
00:03:59,710 --> 00:04:04,282
just no specific animation value for this frame.
70
00:04:04,282 --> 00:04:07,139
Now let's say we want to wipe out all of the animation.
71
00:04:07,139 --> 00:04:09,682
Let's say we don't like the way this thing's rotating,
72
00:04:09,682 --> 00:04:14,882
we don't want it to rotate anymore, and right now we have one,
73
00:04:14,882 --> 00:04:18,597
two, three, four keyframes that are flagged here in the timeline,
74
00:04:18,597 --> 00:04:22,281
but we want to wipe out all the keyframes on this attribute at once.
75
00:04:22,282 --> 00:04:26,132
Well you can right-click here and you can select No animation,
76
00:04:26,132 --> 00:04:30,567
and it's always going to ask you if you're sure you want to do that
77
00:04:30,567 --> 00:04:32,282
because it's going to wipe out every keyframe.
78
00:04:32,282 --> 00:04:34,567
So it's going to wipe out all the work that you've done
79
00:04:34,567 --> 00:04:36,982
animating this thing on this attribute, and if we click Yes,
80
00:04:36,982 --> 00:04:39,432
you'll notice all of the text disappear,
81
00:04:39,432 --> 00:04:41,882
this box goes back to being gray,
82
00:04:41,882 --> 00:04:45,281
showing us that there is no more animation on this attribute.
83
00:04:45,281 --> 00:04:49,281
Now let's say we have animation on one of our attributes and we want
84
00:04:49,282 --> 00:04:52,431
to transfer that animation to another attribute.
85
00:04:52,431 --> 00:04:56,481
So let's say we have animated the skew X,
86
00:04:56,481 --> 00:05:03,082
so I'm going to go to frame 1, I'm going to set a keyframe,
87
00:05:03,082 --> 00:05:10,282
I'm going to go to frame 60, I'm going to change this value to 2,
88
00:05:10,282 --> 00:05:13,657
and it skews, and if we scrub the timeline,
89
00:05:13,657 --> 00:05:16,282
you'll see that the value is animated.
90
00:05:16,282 --> 00:05:19,673
And let's say I want to transfer that animation over to skew Y
91
00:05:19,673 --> 00:05:22,281
so they get the same values at the same time.
92
00:05:22,282 --> 00:05:23,615
Well to do that,
93
00:05:23,615 --> 00:05:28,948
you can just right-click in the skew X box and go down to this Copy option,
94
00:05:28,948 --> 00:05:34,681
and you can say Copy Animation, and then if you go to the skew Y,
95
00:05:34,681 --> 00:05:39,372
select it with the left-mouse button, right-click and say Paste Absolute,
96
00:05:39,372 --> 00:05:44,282
we're going to get the absolute values in there.
97
00:05:44,282 --> 00:05:47,615
And so now we're going to get the same skew,
98
00:05:47,615 --> 00:05:50,782
the same numbers, the same interpolation between those keyframes,
99
00:05:50,782 --> 00:05:56,282
so now skew X has the same keyframes as skew Y,
100
00:05:56,282 --> 00:06:00,924
and to delete that animation we just right-click on
101
00:06:00,924 --> 00:06:06,067
those boxes and say No animation, No animation,
102
00:06:06,067 --> 00:06:09,282
and we're back to normal.
103
00:06:09,282 --> 00:06:12,882
Let's say you want to control two transforms at the same time,
104
00:06:12,882 --> 00:06:15,282
which happens all the time when you're comping.
105
00:06:15,282 --> 00:06:19,853
So I'm just going to go in here, hit the Tab button in the Node Graph,
106
00:06:19,853 --> 00:06:21,281
and add another Transform node,
107
00:06:21,282 --> 00:06:25,164
and let's say the animation on Transform3 is what we want
108
00:06:25,164 --> 00:06:27,282
to drive the animation on Transform2.
109
00:06:27,282 --> 00:06:28,372
So on Transform3,
110
00:06:28,372 --> 00:06:32,372
I'm going to go to frame 1 and I'm going to
111
00:06:32,372 --> 00:06:36,837
right-click and set a key on frame 1, go to frame 60,
112
00:06:36,837 --> 00:06:42,282
I'm going to change this to 180 like we did earlier in the clip.
113
00:06:42,282 --> 00:06:46,736
So this value is now animated on this node that's not connected to anything,
114
00:06:46,736 --> 00:06:51,782
and we don't see a change in the picture because what we're looking at is this
115
00:06:51,782 --> 00:06:54,282
Transform node that's connected to our original picture.
116
00:06:54,282 --> 00:06:58,091
So let's say we want to take the animation from
117
00:06:58,091 --> 00:07:00,377
Transform3 and put it into Transform2,
118
00:07:00,377 --> 00:07:04,531
and to do that I'm going to go to Transform3,
119
00:07:04,531 --> 00:07:08,131
I'm going to right-click on the animated value,
120
00:07:08,131 --> 00:07:13,108
and I'm going to go to Copy, and I'm going to say Copy Links,
121
00:07:13,108 --> 00:07:16,238
and what that's going to do is it's going to copy this
122
00:07:16,238 --> 00:07:19,281
attribute as a link into whatever we tell it to.
123
00:07:19,281 --> 00:07:23,281
So now if I go to the parameters for Transform2 and I
124
00:07:23,281 --> 00:07:26,782
right-click on this parameter and say Paste Absolute,
125
00:07:26,782 --> 00:07:32,282
you'll see this little green line gets drawn telling us that
126
00:07:32,282 --> 00:07:36,094
this is borrowing values from this node.
127
00:07:36,094 --> 00:07:42,282
So we've copied the animation from this node into this node.
128
00:07:42,282 --> 00:07:48,512
So it's actually the values present in Transform3 are
129
00:07:48,512 --> 00:07:51,281
being transferred to Transform2.
130
00:07:51,282 --> 00:07:54,801
So we can see that if I go to frame 60,
131
00:07:54,801 --> 00:07:58,321
and I clear out this Properties tab and I just look
132
00:07:58,321 --> 00:08:04,492
at the animation on Transform3, and I want to change this keyframe to 60,
133
00:08:04,492 --> 00:08:09,759
for example, it's going to update the information down in Transform2.
134
00:08:09,759 --> 00:08:13,699
So now this node is controlling this node.
135
00:08:13,700 --> 00:08:15,932
So I hope that didn't get too complicated,
136
00:08:15,932 --> 00:08:19,615
I just wanted you to be aware that animation could be linked between
137
00:08:19,615 --> 00:08:21,948
different parameters and different attributes in NUKE,
138
00:08:21,948 --> 00:08:25,282
and that's really powerful later down the line,
139
00:08:25,282 --> 00:08:36,281
and hopefully should make a little more sense as we get
140
00:08:36,281 --> 00:08:42,281
into some more advanced operations later.
12763
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.