Guys in this lecture I'm going to show you how to create a pie chart.
And in the next lecture I'll show you how to use the expression controls to control the colors and the
percentage.
Let's start by creating our PI.
So we use a database tool come in the middle click and press control and shift and open a circle is
a very big stroke.
Now if you're in path here as you know and used the and you will not that is going to trim the stroke
and the background.
Well we don't want to do that but we need to fix it of course.
So let's delete the path here for the first time then select the ellipse and rename it to background.
So I would write about the the background here we want to remove the stroke I've come to stroke and
just remove the rock.
Now let's do this one and then Let's rename it to by in the PI.
We are going to put this stroke at 50 and then the feel.
Of course you want to consider if you added the theme path to the by itself.
This is the path.
And if you play with the end or the start here you are it's working very fine.
But as you notice here the background is smaller than the by itself.
You need to adjust this and the best way to adjust it is to move the stroke using the offset path.
So I would read the theme path again and I would select by and add a nuff said but now you know about
the offset but be careful that has been added above the stroke.
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
background and the stroke itself are in the same count to all the same binding box.
But not this where the impasse is starting now.
So over here that's because you added the offset path.
So the best way is to offset also by 180 if not is just a way to not as there is no right figure.
And we are called now we can create our own image this created using the end come to the end here.
Keyframe it put it at zero.
Then after one second we put it out.
For example 75 percent.
So now you have your little graph here.
Let's add some text in the middle for shuffle and go for the selection tool and then Center the pie
in the middle of the cup.
I will go for the text tool and type in for example one two three.
The font size is OK the font is OK.
So let's put the anchor point in the middle of the text and then also Center the text layer.
I'm using good control home or command home to center.
Now we need to make the text you know come with the percentage of the pie so you can text you know all
this already.
You come to content and you want to link the content to the end.
So I would just use the clip and just drop it over.
Now it's pretty good but showing just a figure 60.
I want to add the percentage and I want to make sure it's not the same at all time.
So will come to the expression and come to the beginning of the expression and you know that you have
to add the math around expressions or math that around opened the brackets go to the end and close the
bracket.
Now it's going to be around FICO that's OK.
But I want to add something else or plus and add the percent.
Now I can add the percent as a collector because that is the math.
If the math was not here you would have a figure number with a collector.
It would not work.
But in this case it will work very fine.
Here you are pretty good.
Now let's adjust the opacity here.
I mean appearing at 0 percent is not good at all.
Open the opposite to here.
You could keyframe it but I'm going to play a game here which is nice.
I would take the trip and keep it to the end.
Skip through your notice that you know that opacity is starting at zero and goes to the end.
Fortunately it stops at 75 percent.
Well to work this one out I would come to the expression for the opacity multiply by 10.
So when you multiply by 10 from 0 to 10 frames it's going to go from zero to 100 percent.
You have a nice opacity and here you are do you have your PI.
You can kind of play around with the stroke if you like to make it a round stroke.
OK.
Let's go to the buy one and this is a slow going over here and instead of line.
For example use a round cup it becomes a bit nicer.
OK.
If you'd like to I want to keep it to Buttercup now that you have your buy over here.
So I will recompose just over here come to recompose and play compose and call it by one.
Let's open the new composition.
And I want I want to trim it to the region of interest click or region of interest just limit just like
this.
It would be called.
Doesn't really matter much.
And then we go to composition and come up to region of interest in the next action.
I'll show you how to use the expression controls to control the percentage and the color of the by itself.
Thanks I will see you in the next.