1
00:00:01,320 --> 00:00:09,840
In the previous lecture we created these fantastic awesome by so lots of colors and we bit upgraded

2
00:00:09,870 --> 00:00:16,860
by creating a controls layer and we have key frames a slider and the pie animation is following the

3
00:00:16,860 --> 00:00:18,580
animation of these slider.

4
00:00:18,900 --> 00:00:19,860
That's pretty cool.

5
00:00:19,950 --> 00:00:29,310
But if I want to change the value of the by itself or the slice that will be changing 75 percent to

6
00:00:29,310 --> 00:00:36,210
something else I have to position the play head on the key frame maybe select the key frame and then

7
00:00:36,210 --> 00:00:40,620
change the value which makes it a bit hard to change.

8
00:00:40,650 --> 00:00:41,720
That's one.

9
00:00:41,880 --> 00:00:47,790
Also if I were to create similar slices here the calculation is going to be like awesome man.

10
00:00:47,790 --> 00:00:50,060
How is it gonna work.

11
00:00:50,070 --> 00:00:52,320
And how many key frames I'm gonna have.

12
00:00:52,320 --> 00:00:55,050
And if I want to change one value what will happen.

13
00:00:55,050 --> 00:01:03,240
So we actually need to simplify the key frame system and be able to create more slices in a very easy

14
00:01:03,240 --> 00:01:04,290
way.

15
00:01:04,290 --> 00:01:09,660
And for that we are going to use more expressions but there are two of them and they are very easy to

16
00:01:09,660 --> 00:01:09,990
use.

17
00:01:10,710 --> 00:01:15,120
So let's go back to project and create a dummy composition.

18
00:01:15,120 --> 00:01:16,630
We don't care about the name.

19
00:01:16,650 --> 00:01:23,460
We are going to pay attention to the frame rate and then I have twenty five frames per second so every

20
00:01:23,460 --> 00:01:30,570
second I have twenty five frames and click OK I'm gonna create an empty text there just to show you

21
00:01:30,570 --> 00:01:31,940
the values here.

22
00:01:32,250 --> 00:01:40,020
Come inside the text layer inside the source text art click on the stopwatch or option click to open

23
00:01:40,110 --> 00:01:46,080
the expression and the first expression I want to use if you come over here usually you will type it

24
00:01:46,080 --> 00:01:48,120
in it is time okay.

25
00:01:48,240 --> 00:01:49,800
As simple as this.

26
00:01:49,800 --> 00:01:53,150
So we have the time expression now in After Effects.

27
00:01:53,160 --> 00:01:56,130
You can read the time of the time indicator.

28
00:01:56,610 --> 00:02:01,170
So if the time indicator it's in the beginning time will be of course 0.

29
00:02:01,200 --> 00:02:02,730
If you go to one second.

30
00:02:02,780 --> 00:02:09,470
This is displaying one second and so on for two seconds and three seconds between.

31
00:02:09,480 --> 00:02:15,990
For example if I got 10 frames you will notice the value here is decimal and it is zero point four which

32
00:02:15,990 --> 00:02:23,490
is ten frames divided by the frames per second for the composition the frame rate.

33
00:02:23,490 --> 00:02:24,740
That will be twenty five.

34
00:02:24,990 --> 00:02:30,780
So it's ten divided by twenty five so at zero point four which you can't care less about the value all

35
00:02:30,780 --> 00:02:34,560
you know that at a certain time it gives you a certain value.

36
00:02:34,560 --> 00:02:43,610
As simple as this now we want to use an expression that will interpolate the time or interpret the time

37
00:02:43,900 --> 00:02:49,690
and return certain values for us to work with this expression is very easy.

38
00:02:49,840 --> 00:02:54,670
If you come to the arrow here you will go to interpolation and you have several of them.

39
00:02:54,740 --> 00:03:02,950
In fact they are almost all identical except there is is is in and is out we are going to use the linear

40
00:03:02,950 --> 00:03:10,480
one which will interpolate or interpret the time in a linear fashion straight line and it has similar

41
00:03:10,480 --> 00:03:19,570
parameters here that I will explain so linear will interpret T okay in our case D will be the time.

42
00:03:19,830 --> 00:03:25,150
So we are going to interpret the time and then we can have a minimum time.

43
00:03:25,170 --> 00:03:32,910
So let's say one second that is the minimum time and I can have the maximum time for example four seconds.

44
00:03:32,910 --> 00:03:41,490
So actually linear will interpret the time now between one second and four seconds and for the time

45
00:03:41,490 --> 00:03:50,960
being equal to one then it's going to return the value one which I would say 100 so at one second it

46
00:03:50,960 --> 00:03:54,210
will return one hundred and at four seconds.

47
00:03:54,290 --> 00:03:56,970
Let's say it will return four hundred.

48
00:03:56,970 --> 00:04:03,210
Okay so now then it will interpret the time between one second and four seconds.

49
00:04:03,210 --> 00:04:07,490
I would say Stern values in between 100 and 400.

50
00:04:07,910 --> 00:04:09,060
As simple as this.

51
00:04:09,230 --> 00:04:16,340
Now if you play with the time indicated at one second it will return one hundred at one second and before

52
00:04:16,700 --> 00:04:23,590
it will return one hundred because we specified that it starts from one then if you move on to four

53
00:04:23,590 --> 00:04:26,920
seconds it is gonna return four hundred.

54
00:04:26,920 --> 00:04:32,230
Okay so one for one hundred four hundred minimum maximum minimum maximum.

55
00:04:32,230 --> 00:04:39,960
As simple as this I think up to two seconds is gonna return a value in between 100 and 400.

56
00:04:40,270 --> 00:04:42,440
Interpreting the value of time.

57
00:04:42,550 --> 00:04:46,240
So it's gonna be two hundred if you go to three seconds.

58
00:04:46,240 --> 00:04:48,550
Of course is gonna be 300.

59
00:04:48,580 --> 00:04:55,480
So notice how the interpolation is happening or the interpretation of the time for every frame you move

60
00:04:55,510 --> 00:04:55,800
in.

61
00:04:55,840 --> 00:04:57,200
I'm gonna use page down.

62
00:04:57,340 --> 00:05:01,920
You will get into a certain value as simple as this.

63
00:05:02,020 --> 00:05:07,790
Now in our case it would be nice to use zero to 75 percent.

64
00:05:08,080 --> 00:05:11,190
As simple as this you get a guy's okay.

65
00:05:11,260 --> 00:05:17,650
Now if you don't want to see decimals here the best way is to add two fixed which you already know we

66
00:05:17,650 --> 00:05:21,870
have seen that and I put two digits that will be cool.

67
00:05:22,030 --> 00:05:25,680
So you notice it's very easy to use.

68
00:05:25,720 --> 00:05:32,370
So in the next lecture we are going to use the near interpolation for time to animate our PI.

69
00:05:32,500 --> 00:05:34,270
And now I'm going to delete this one.

70
00:05:34,830 --> 00:05:37,920
I'll get the component we don't need it and I will see you in the next lecture.
