1
00:00:01,510 --> 00:00:05,160
Guys in this lecture I'm going to show you how to create a pie chart.

2
00:00:05,400 --> 00:00:11,220
And in the next lecture I'll show you how to use the expression controls to control the colors and the

3
00:00:11,220 --> 00:00:12,730
percentage.

4
00:00:12,780 --> 00:00:15,120
Let's start by creating our PI.

5
00:00:15,150 --> 00:00:23,070
So we use a database tool come in the middle click and press control and shift and open a circle is

6
00:00:23,070 --> 00:00:24,350
a very big stroke.

7
00:00:25,600 --> 00:00:33,930
Now if you're in path here as you know and used the and you will not that is going to trim the stroke

8
00:00:34,000 --> 00:00:35,180
and the background.

9
00:00:35,470 --> 00:00:38,620
Well we don't want to do that but we need to fix it of course.

10
00:00:38,860 --> 00:00:44,700
So let's delete the path here for the first time then select the ellipse and rename it to background.

11
00:00:44,740 --> 00:00:50,450
So I would write about the the background here we want to remove the stroke I've come to stroke and

12
00:00:50,450 --> 00:00:52,940
just remove the rock.

13
00:00:52,990 --> 00:00:59,510
Now let's do this one and then Let's rename it to by in the PI.

14
00:00:59,550 --> 00:01:03,820
We are going to put this stroke at 50 and then the feel.

15
00:01:03,840 --> 00:01:10,340
Of course you want to consider if you added the theme path to the by itself.

16
00:01:10,390 --> 00:01:11,550
This is the path.

17
00:01:11,830 --> 00:01:16,630
And if you play with the end or the start here you are it's working very fine.

18
00:01:16,810 --> 00:01:21,380
But as you notice here the background is smaller than the by itself.

19
00:01:21,490 --> 00:01:27,790
You need to adjust this and the best way to adjust it is to move the stroke using the offset path.

20
00:01:27,850 --> 00:01:35,680
So I would read the theme path again and I would select by and add a nuff said but now you know about

21
00:01:35,680 --> 00:01:39,680
the offset but be careful that has been added above the stroke.

22
00:01:40,470 --> 00:01:49,680
If the slope is 50 I will put that minus 25 and now it's OK if you add the path you notice that the

23
00:01:49,680 --> 00:01:55,960
background and the stroke itself are in the same count to all the same binding box.

24
00:01:56,760 --> 00:01:59,100
But not this where the impasse is starting now.

25
00:01:59,100 --> 00:02:02,820
So over here that's because you added the offset path.

26
00:02:02,940 --> 00:02:09,500
So the best way is to offset also by 180 if not is just a way to not as there is no right figure.

27
00:02:09,750 --> 00:02:17,290
And we are called now we can create our own image this created using the end come to the end here.

28
00:02:17,510 --> 00:02:20,280
Keyframe it put it at zero.

29
00:02:20,440 --> 00:02:23,420
Then after one second we put it out.

30
00:02:23,440 --> 00:02:25,250
For example 75 percent.

31
00:02:25,450 --> 00:02:27,910
So now you have your little graph here.

32
00:02:29,840 --> 00:02:36,760
Let's add some text in the middle for shuffle and go for the selection tool and then Center the pie

33
00:02:36,760 --> 00:02:39,230
in the middle of the cup.

34
00:02:39,650 --> 00:02:43,870
I will go for the text tool and type in for example one two three.

35
00:02:44,360 --> 00:02:46,340
The font size is OK the font is OK.

36
00:02:46,350 --> 00:02:52,310
So let's put the anchor point in the middle of the text and then also Center the text layer.

37
00:02:52,310 --> 00:02:56,660
I'm using good control home or command home to center.

38
00:02:56,700 --> 00:03:03,000
Now we need to make the text you know come with the percentage of the pie so you can text you know all

39
00:03:03,000 --> 00:03:03,930
this already.

40
00:03:03,940 --> 00:03:08,000
You come to content and you want to link the content to the end.

41
00:03:08,160 --> 00:03:11,090
So I would just use the clip and just drop it over.

42
00:03:11,400 --> 00:03:14,490
Now it's pretty good but showing just a figure 60.

43
00:03:14,520 --> 00:03:18,940
I want to add the percentage and I want to make sure it's not the same at all time.

44
00:03:19,110 --> 00:03:24,150
So will come to the expression and come to the beginning of the expression and you know that you have

45
00:03:24,150 --> 00:03:33,090
to add the math around expressions or math that around opened the brackets go to the end and close the

46
00:03:33,090 --> 00:03:34,250
bracket.

47
00:03:34,320 --> 00:03:36,270
Now it's going to be around FICO that's OK.

48
00:03:36,270 --> 00:03:41,950
But I want to add something else or plus and add the percent.

49
00:03:42,020 --> 00:03:46,140
Now I can add the percent as a collector because that is the math.

50
00:03:46,520 --> 00:03:50,980
If the math was not here you would have a figure number with a collector.

51
00:03:50,990 --> 00:03:52,040
It would not work.

52
00:03:52,070 --> 00:03:54,530
But in this case it will work very fine.

53
00:03:54,600 --> 00:03:56,300
Here you are pretty good.

54
00:03:56,300 --> 00:03:58,250
Now let's adjust the opacity here.

55
00:03:58,250 --> 00:04:01,800
I mean appearing at 0 percent is not good at all.

56
00:04:01,860 --> 00:04:03,160
Open the opposite to here.

57
00:04:03,320 --> 00:04:07,120
You could keyframe it but I'm going to play a game here which is nice.

58
00:04:07,250 --> 00:04:10,540
I would take the trip and keep it to the end.

59
00:04:10,880 --> 00:04:15,950
Skip through your notice that you know that opacity is starting at zero and goes to the end.

60
00:04:16,190 --> 00:04:19,490
Fortunately it stops at 75 percent.

61
00:04:19,700 --> 00:04:26,270
Well to work this one out I would come to the expression for the opacity multiply by 10.

62
00:04:26,300 --> 00:04:32,240
So when you multiply by 10 from 0 to 10 frames it's going to go from zero to 100 percent.

63
00:04:32,240 --> 00:04:36,610
You have a nice opacity and here you are do you have your PI.

64
00:04:36,790 --> 00:04:40,900
You can kind of play around with the stroke if you like to make it a round stroke.

65
00:04:41,090 --> 00:04:41,500
OK.

66
00:04:41,510 --> 00:04:47,510
Let's go to the buy one and this is a slow going over here and instead of line.

67
00:04:47,540 --> 00:04:51,290
For example use a round cup it becomes a bit nicer.

68
00:04:51,400 --> 00:04:51,880
OK.

69
00:04:51,920 --> 00:04:59,200
If you'd like to I want to keep it to Buttercup now that you have your buy over here.

70
00:04:59,500 --> 00:05:08,740
So I will recompose just over here come to recompose and play compose and call it by one.

71
00:05:08,790 --> 00:05:10,840
Let's open the new composition.

72
00:05:11,310 --> 00:05:17,490
And I want I want to trim it to the region of interest click or region of interest just limit just like

73
00:05:17,490 --> 00:05:17,760
this.

74
00:05:17,760 --> 00:05:18,740
It would be called.

75
00:05:18,840 --> 00:05:20,350
Doesn't really matter much.

76
00:05:20,370 --> 00:05:26,680
And then we go to composition and come up to region of interest in the next action.

77
00:05:26,700 --> 00:05:34,220
I'll show you how to use the expression controls to control the percentage and the color of the by itself.

78
00:05:34,220 --> 00:05:35,630
Thanks I will see you in the next.
