1
00:00:00,630 --> 00:00:07,200
Guys and welcome to this new lecture in expressions if you want to learn a lot about expressions I have

2
00:00:07,200 --> 00:00:13,920
a very special of course that you will teach you everything you want to know about expressions and infographics

3
00:00:14,430 --> 00:00:20,940
of course that of course is direct towards creating infographics but it will manipulate expressions

4
00:00:21,000 --> 00:00:27,060
and teach also a lot about certain precepts that are used to do infographics.

5
00:00:27,110 --> 00:00:35,010
5 For now we want to create this by you know just a simple example and how to manipulate expressions

6
00:00:35,010 --> 00:00:35,820
here.

7
00:00:35,880 --> 00:00:39,130
So when the pie is opening it's a pie chart.

8
00:00:39,480 --> 00:00:41,450
The percentage is incrementing.

9
00:00:41,490 --> 00:00:48,420
Of course you could come here and duplicate this one three four times change a value and having a series

10
00:00:48,420 --> 00:00:54,680
of pies that are coming in and it would be quite some infographics you might add some text and so on.

11
00:00:55,070 --> 00:00:57,660
OK if I let's start let's delete everything.

12
00:00:57,660 --> 00:00:58,640
No problem.

13
00:00:58,830 --> 00:01:00,190
We create a circle.

14
00:01:00,210 --> 00:01:07,380
The first circle is going to be the background circle Pest Control shift and create give it a dark color

15
00:01:07,440 --> 00:01:12,870
for example blue darkish blue that will do I will come to elipse.

16
00:01:12,900 --> 00:01:20,520
I will go to transform my lips and set it in the middle of the composition and also said my the anchor

17
00:01:20,520 --> 00:01:21,970
point in the middle.

18
00:01:22,230 --> 00:01:23,450
That's good fine.

19
00:01:23,460 --> 00:01:25,510
Now I want to create the by itself.

20
00:01:25,530 --> 00:01:31,760
What I will do is to duplicate that layer again and give it a stroke.

21
00:01:31,770 --> 00:01:40,820
So we come to the strong full stroke and make it white and make it a bit bigger.

22
00:01:40,850 --> 00:01:45,380
But not now the stroke in the layer is coming you know outside.

23
00:01:45,380 --> 00:01:51,190
An insult is the 87 or the 90 here is divided into two fixed that.

24
00:01:51,380 --> 00:01:55,390
So let's call this background OK for the PI.

25
00:01:55,670 --> 00:01:59,780
And this is the by itself good to fix.

26
00:01:59,810 --> 00:02:05,810
Here what we do is not to resize it because it will never come you know exactly the same.

27
00:02:05,810 --> 00:02:08,250
We have duplicated these circles.

28
00:02:08,690 --> 00:02:11,750
So what we'll do is to come to content.

29
00:02:11,990 --> 00:02:19,120
We go to elipse and we come to elipse but all in 11:1 and we come and we add a offset path.

30
00:02:19,130 --> 00:02:23,230
Now I have minus 90 the offset is set at 10.

31
00:02:23,240 --> 00:02:25,360
I will make it a minus 45.

32
00:02:25,670 --> 00:02:32,050
And now the two circles are 100 percent you know Center and the PI is looking good.

33
00:02:32,060 --> 00:02:39,410
I can come out both of them and scale them up if I like and click and get them up.

34
00:02:39,440 --> 00:02:41,600
We still have the same five.

35
00:02:41,600 --> 00:02:43,280
Now I want to animate the pie.

36
00:02:43,360 --> 00:02:50,190
For that I will use here the path and I will program the path.

37
00:02:50,210 --> 00:02:53,730
It goes from zero to 100 percent using the end.

38
00:02:53,900 --> 00:03:00,140
So I come to the end of keyframe it make it zero percent come to two seconds for example just to show

39
00:03:00,140 --> 00:03:02,740
you and make it 75 percent.

40
00:03:02,990 --> 00:03:05,510
So now is not working because I need to offset it.

41
00:03:05,510 --> 00:03:07,850
I will offset that with minus 80.

42
00:03:07,950 --> 00:03:10,460
Yup and here we are.

43
00:03:10,460 --> 00:03:17,030
It's moving along the path that all you knew I would come to the text here click in the middle of the

44
00:03:17,030 --> 00:03:19,070
text and right one two three four.

45
00:03:19,070 --> 00:03:26,590
Now put the anchor point of the text in the middle and center right in the middle of the composition.

46
00:03:26,670 --> 00:03:29,580
It was centered in the middle of the circle.

47
00:03:29,580 --> 00:03:31,390
Here you are five.

48
00:03:31,470 --> 00:03:38,080
Now I wanted the text to display the percentage of the opening of the pie.

49
00:03:38,340 --> 00:03:40,070
I will come to Texas.

50
00:03:40,400 --> 00:03:45,940
I will open thanks as usual open source text and pick it to the.

51
00:03:46,140 --> 00:03:48,440
And of course I'm sure you knew that.

52
00:03:48,780 --> 00:03:51,950
I will come and pick me up to the end and here you are.

53
00:03:51,990 --> 00:03:54,260
It's over there but it is.

54
00:03:54,270 --> 00:03:56,850
And we need to make it not that simple.

55
00:03:57,180 --> 00:04:01,120
So I will come to the source text and you know that function.

56
00:04:01,290 --> 00:04:09,720
I want to type it so I type math that around open brackets press and go to the end and close the brackets.

57
00:04:09,780 --> 00:04:13,180
And here you are you have your text coming in beautiful.

58
00:04:13,180 --> 00:04:21,570
Then I want to add the percentage so that is the public what percent of what and call you out.

59
00:04:21,620 --> 00:04:26,680
You can increase the size of the text if you want make it bigger.

60
00:04:27,180 --> 00:04:33,390
Now if you believe you call it's happening very nice you can change the percentage or you have to do

61
00:04:33,390 --> 00:04:39,840
is to come to the end of the path and go to the keyframe for example and check the percentage the way

62
00:04:39,840 --> 00:04:40,320
you want.

63
00:04:40,320 --> 00:04:43,520
And everything will work this political.

64
00:04:43,600 --> 00:04:46,740
Is that the zero appears in the beginning and we don't want that.

65
00:04:46,740 --> 00:04:49,380
So we come to the decks.

66
00:04:49,410 --> 00:04:51,330
We open our placidity.

67
00:04:51,390 --> 00:04:55,250
Now I can put keyframes on the opacity but that will be silly.

68
00:04:55,470 --> 00:05:04,520
Well I will do is to open the expression and go down to the end again and put the end here.

69
00:05:05,130 --> 00:05:07,120
Now the opacity is a function of the end.

70
00:05:07,140 --> 00:05:14,520
If you start it would be at zero because and the zero if you scroll up you will be not 100 percent because

71
00:05:14,640 --> 00:05:17,040
this is going on it's 77 percent.

72
00:05:17,040 --> 00:05:19,660
How do I solve the problem in a very easy way.

73
00:05:19,830 --> 00:05:27,750
I just multiplied the value of opacity by two times two or 1.5 whatever you want provided that at the

74
00:05:27,750 --> 00:05:31,590
end it's more equal or more to 100 percent.

75
00:05:31,920 --> 00:05:34,000
And here you are.

76
00:05:34,560 --> 00:05:36,990
That's a pretty cool one what you can do here.

77
00:05:37,170 --> 00:05:43,950
Usually what they will do is take all this and make Control-C and Contrave now I have the buy two.

78
00:05:44,250 --> 00:05:48,890
I will take buy two and put it here for example and buy one.

79
00:05:49,060 --> 00:05:54,640
But on this side that I want to put it here.

80
00:05:54,730 --> 00:05:57,890
Come here are very nice.

81
00:05:57,910 --> 00:06:04,010
Now I will come to the keyframe select all of them see where the keyframes will go to the end not by

82
00:06:04,020 --> 00:06:04,330
two.

83
00:06:04,330 --> 00:06:11,040
For example we wanted to go to a little bit.

84
00:06:11,200 --> 00:06:17,640
And now there is a problem you notice that a pie one or this pie is still having the value of this.

85
00:06:17,640 --> 00:06:26,690
And so one of the things that I will come to text for this by open the expression I will eat and not

86
00:06:26,730 --> 00:06:28,470
zero of the path one.

87
00:06:28,670 --> 00:06:36,140
Well I must do here is to change for by one two by two and I will put by two.

88
00:06:36,620 --> 00:06:41,100
And here also I want to put by two that work.

89
00:06:41,160 --> 00:06:42,570
Yes it did work.

90
00:06:42,630 --> 00:06:43,460
Here you are.

91
00:06:43,790 --> 00:06:50,090
So now this is the simple changes that you have to do to get a reputation of a certain item.

92
00:06:50,120 --> 00:06:55,810
Now you have a very good one you don't need to compose or to create many things but this will work.

93
00:06:55,820 --> 00:06:58,370
Of course I would not go for one two three.

94
00:06:58,370 --> 00:07:02,530
I will write a text one for example or this one is text too.

95
00:07:02,750 --> 00:07:13,200
And this is the first one and name one I would have done this before and the back one.

96
00:07:14,090 --> 00:07:16,480
So it's very clear what is happening here.

97
00:07:16,790 --> 00:07:23,310
I could also use the index here and we'll see that later on to be able to give the values that I want

98
00:07:23,310 --> 00:07:24,130
to find.

99
00:07:24,140 --> 00:07:25,520
Thanks very much for listening.

100
00:07:25,520 --> 00:07:28,380
I hope this was useful given this pies.

101
00:07:28,700 --> 00:07:34,560
It's very nice and it will help you a lot if you're doing infographics or whatever you're doing a documentary

102
00:07:34,580 --> 00:07:37,220
and stories like this it's quite interesting.

103
00:07:37,340 --> 00:07:41,440
We have used the expression here just to control everything.

104
00:07:41,450 --> 00:07:47,850
If you press you you have only two keyframes and it's enough to change the value of the Laski frame.

105
00:07:48,080 --> 00:07:52,970
So to change the value that's appearing in all the graph and it's pretty convenient.

106
00:07:52,970 --> 00:07:54,280
See you in the next lecture.

107
00:07:54,290 --> 00:07:56,200
And thanks for listening to this one.

