1
00:00:01,140 --> 00:00:07,170
In this lecture guys I'm gonna show you how to free your animation from these key frames and we are

2
00:00:07,170 --> 00:00:13,100
going to use the linear interpolation of expression that we have seen in the previous lecture.

3
00:00:13,590 --> 00:00:19,090
What is gonna be very easy and very simple so let's look a bit at our animation.

4
00:00:19,090 --> 00:00:25,280
It start at one second and ends at let's make it three seconds here okay.

5
00:00:25,620 --> 00:00:27,570
In our original one it was less.

6
00:00:27,570 --> 00:00:34,410
I'm going to make it three seconds for simplicity here and the value is gonna go from zero to 100 percent.

7
00:00:34,440 --> 00:00:37,900
Let's replace all this with the linear expression.

8
00:00:37,900 --> 00:00:39,660
I have to click on the stopwatch.

9
00:00:39,660 --> 00:00:41,280
It's okay if you keep the key frames.

10
00:00:41,340 --> 00:00:44,070
The expression will override the key frames.

11
00:00:44,070 --> 00:00:53,140
Now I'm gonna write a linear open brackets the interpolation is gonna be on time of course.

12
00:00:53,140 --> 00:01:00,940
And the minimum time is 1 as the key frames maximum time is 3 as in the key frames here.

13
00:01:01,120 --> 00:01:10,620
Minimum value is 0 as in the pie chart to start at 0 a maximum value is at 75 percent or 75 only.

14
00:01:10,840 --> 00:01:15,690
And let's play the animation here you are cool.

15
00:01:16,000 --> 00:01:17,610
It's working 100 percent.

16
00:01:17,740 --> 00:01:20,710
Now we could remove Of course the key frames.

17
00:01:20,710 --> 00:01:27,220
So actually you have a key frame less animation driven for this slice now.

18
00:01:27,230 --> 00:01:29,430
Also I can add more than that.

19
00:01:29,570 --> 00:01:30,200
You're not to see it.

20
00:01:30,230 --> 00:01:36,860
I hardcoded the minimum time maximum time the minimum value and the maximum value instead of having

21
00:01:36,860 --> 00:01:38,310
them hardcoded.

22
00:01:38,330 --> 00:01:46,340
How about if you create a new values control layer and set these values inside the value control layer

23
00:01:46,790 --> 00:01:50,610
and then pick with them or link them into this expression.

24
00:01:50,620 --> 00:01:52,430
Here let me show you how it works.

25
00:01:52,430 --> 00:01:54,100
It's very easy by the way.

26
00:01:54,260 --> 00:01:56,160
So I'm gonna right click and send you.

27
00:01:56,210 --> 00:01:59,950
I prefer you use a solid layer which will do.

28
00:02:00,080 --> 00:02:06,580
Again looking only at the color and make it invisible and rename it a values control.

29
00:02:08,310 --> 00:02:12,540
By the way guys we could have used the controls layer but this is for clarity now.

30
00:02:13,530 --> 00:02:17,990
Let's come over to the effect empty set and search for control.

31
00:02:18,000 --> 00:02:20,080
Of course you have the slider control.

32
00:02:20,120 --> 00:02:23,250
I click and drag and drop it on the values control.

33
00:02:23,250 --> 00:02:28,790
So the first one is gonna be the start time or ti minimum if you like.

34
00:02:28,800 --> 00:02:35,990
If you want to visualize it it's gonna be zero then I'm gonna take another one for t maximum.

35
00:02:36,060 --> 00:02:37,740
So this is t Mark's.

36
00:02:37,770 --> 00:02:43,470
I can name them whenever I like by the way and my maximum time according to this animation is three

37
00:02:43,470 --> 00:02:45,040
seconds.

38
00:02:45,070 --> 00:02:47,870
Now I have the zero and seventy five.

39
00:02:47,920 --> 00:02:50,410
I'm not gonna take care of the zero here because it's too obvious.

40
00:02:50,410 --> 00:02:52,990
I'm gonna take care to the maximum value here.

41
00:02:53,140 --> 00:03:00,370
So I'm gonna drop in another slider and call this slider by value or by percent.

42
00:03:00,370 --> 00:03:02,410
We are by percent we do better.

43
00:03:02,410 --> 00:03:06,300
So this is the percentage for the pie now coming over here.

44
00:03:06,340 --> 00:03:11,770
I could simply select one from here and pick whippet to the team minimum slider.

45
00:03:11,770 --> 00:03:12,370
Here you are.

46
00:03:12,840 --> 00:03:18,990
But not this is going to be a very long expression and it's not cool at all is very hard to read.

47
00:03:19,000 --> 00:03:25,790
So instead of doing that I'm going to enter certain variables meaning store the value of t me moment

48
00:03:25,810 --> 00:03:30,640
t maximum inside separate variables and then put these variables over here.

49
00:03:30,640 --> 00:03:37,060
It's way easy come to the beginning and press Enter or Return on the main keyboard not on the numeric

50
00:03:37,060 --> 00:03:37,320
pad.

51
00:03:37,950 --> 00:03:45,900
And I'm gonna say start time that will be s.t. will be equal to and then I will pick up to the minimum

52
00:03:45,910 --> 00:03:46,550
here.

53
00:03:46,570 --> 00:03:52,240
Here you are simple at the end of the line I have to put the semicolon just to make sure that we are

54
00:03:52,330 --> 00:03:54,150
ending the line here.

55
00:03:54,220 --> 00:03:55,110
Press turn.

56
00:03:55,180 --> 00:03:58,150
Now I'm gonna take care of the end time.

57
00:03:58,240 --> 00:04:05,060
I'm gonna put equal and pick whippet to t maximum all the time.

58
00:04:05,080 --> 00:04:05,910
Here you are.

59
00:04:06,100 --> 00:04:07,950
In this case it's the three seconds.

60
00:04:08,050 --> 00:04:09,970
Let's put the semicolon.

61
00:04:09,970 --> 00:04:16,120
Now I have to take care of the percent which is seventy five which is by percent so I'm gonna write

62
00:04:16,130 --> 00:04:20,530
a B P that will be by percent equal.

63
00:04:20,530 --> 00:04:26,270
Of course you can give any kind of letters and numbers here just to create variables name.

64
00:04:26,440 --> 00:04:31,980
Then I'm gonna pick a bit to the PI percent slider and put the semicolon at the end.

65
00:04:32,020 --> 00:04:36,640
So now here the expression will be starting time that will be s t.

66
00:04:36,790 --> 00:04:44,110
Make sure that you have the same spelling for uppercase and lowercase as big d small as Big D small.

67
00:04:44,110 --> 00:04:44,790
Okay.

68
00:04:44,980 --> 00:04:46,830
It's very case sensitive here.

69
00:04:47,070 --> 00:04:49,260
Then ITI that's a nice one.

70
00:04:49,330 --> 00:04:53,890
I'm gonna leave the zero and write b be as simple as this.

71
00:04:53,890 --> 00:04:56,880
This click blood come to the beginning.

72
00:04:56,970 --> 00:05:03,190
But first let's add a value here let's put it at 65 percent and play our animation.

73
00:05:03,290 --> 00:05:07,160
What is going from 0 to 3 seconds.

74
00:05:07,150 --> 00:05:12,210
Gonna make it speedier from 1 to 3 seconds.

75
00:05:12,380 --> 00:05:18,500
Here you are not this is going to start at 1 notice here at 1 and finish as 3 seconds.

76
00:05:18,530 --> 00:05:20,140
You can change that the spigot.

77
00:05:20,270 --> 00:05:22,000
Two seconds only.

78
00:05:22,100 --> 00:05:23,180
Here you are.

79
00:05:23,450 --> 00:05:26,570
And you know this your animation is running without any key frames.

80
00:05:27,440 --> 00:05:30,930
If you will up everything with this select roll out everything.

81
00:05:30,950 --> 00:05:38,530
The only layer now that you need to fill is to change the PI Value is the values control and of course

82
00:05:38,540 --> 00:05:40,360
now you can change the starting time.

83
00:05:40,370 --> 00:05:47,750
I'll make a zero point five seconds ending time one second value 50 percent and play

84
00:05:50,900 --> 00:05:52,890
I need now to work a bit.

85
00:05:52,910 --> 00:06:00,110
The other layers if you want to push them over his for example and here you are cool guys.

86
00:06:00,380 --> 00:06:04,160
So actually we are really now in control now.

87
00:06:04,280 --> 00:06:10,160
It has also become very easy to create more pies here and I show that in the next lecture.
