This is the price chart that we are going to create in this lecture I noticed has only three slices
and we are going to do it in a certain way where we are not going to use any key frames.
We are going to use all the expressions and is very easy very simple and you will learn how to compound
these slices values to have a 100 percent.
Now starting from here you will be able to create any pie with 10 20 slices and as many as you want.
So let's jump in.
First of all I'm going to duplicate this one that is by to expression and now I have another one I'm
going to call it by 3 was expressions.
Okay now will be much nicer just to simplify the explanation and the way we are going to create the
multiple pies.
I'm gonna remove or delete the layer that is has the small border here.
Here you are.
Just for simplicity then since we are going to have multiple pies the null and the percent we should
even shy them away.
OK so now we have the very simple one to create.
Now the first thing you want to do is to work on the value controls.
So I will come to the effects here and we want to add for the pie too.
So the first thing we want to add is the pie percent.
So I'm gonna write this is by percent 1 then control D and a half by percent to as you know the pie
is the way they work or the slices.
Let's say one is 30 percent.
The other one should be 70 percent.
So they close all the pie.
If you had three of them of course you would distribute them so the total sum is 100 percent.
So now let's go to the controls and we have slider control.
So we're gonna call it pie animation one okay.
And then we are going to duplicate it to have by animation to let us go to the value controls and lock
it and come back to the controls.
So I press w e to see the expressions let's make this one up a bit so we can see more.
So you have by an emission one if you look at it inside is taking by percent one.
So obviously for the pie animation too you will want to have.
Here you are by percent to as simple as this.
That's the only change that is required for now.
Then later on I will explain to you.
So now let's duplicate pie.
And we have by 2 and I'm going to press twice on e to open the expression and you'll notice here this
animation is controlled by pi and emission 1 actually wanted to be controlled by by an emission too.
So actually we have done all the changes except one which is the color.
So I'm gonna come to by two and change the color to something bluish for example to see it very neatly.
Now let's this select press L to close all the layers.
Take this one down a bit and less viewed at 100 percent the way it is and let's play and you notice
it quite a bit of an animation and they are both coming actually the wrong way.
So not as here we have something to add if the first pi or the first slice is 30 percent and the second
one is 70 percent there should be at total 100 percent and close the pie.
So not this by two is 70 percent but it should start from the end of by 1.
Right.
Makes sense to you.
So by 1 plus plus two equal 100 percent.
How are you going to do this.
Actually it's very very easy.
Let's go to the controls.
Press double E's so we can see the expression.
I'm gonna take it up and we are interested in buying emission too.
No that's what's happening here.
It's taking the percentage of Pi too.
That's very correct.
But we need the compound of by 1 and by 2.
So this is the way I'm going to do it.
Okay great.
B1 that will be the percentage of buy one.
I'm going to link it to by percent one it just over here in the value controls.
Not as that I locked the value controls so I can see it all the time then I'm gonna write semicolon
and b to that will be the percentage for the pi 2 and link it to percentage by 2 now BP or the PI percentage.
The second one here should not be this one 4 percent 2.
It should be P1 plus b 2.
That's the compound value.
And if you look at your animation now it's working 100 percent.
Here you are.
OK so let's close and see it all together.
Very nice animation.
There is no mistake now.
Now we should always take care that if one is 25 the other one should be the.
So it's going to be mine 100 minus 25.
If you like two is not good to do linking over here because you might add more I was pretty cool guys
right.
Let's add the third one so we'll come to PI percent too and add the third one and let's say here we
have 25 and we have 30.
That's 55.
So this one would be 45 unless opened the controls.
Now in the affected I have by any mission to I'm going to duplicate it.
I will have buy emission 3.
Not this how cool after effects is it showing me the controls over here.
Can I lock also this one here.
So I have the two panels that I can see and then I would turn it down.
Stop the animation a bit and here we need to do some changes right guys.
I'll take it up.
So it's gonna be adding P 3.
So if you are you have a P 3 equal and simply pick whippet 2 percent 3.
The slider and of course I keep on forgetting the semicolons though it doesn't matter anymore in after
effects of course I'm going to add B3.
Here you are.
Then of course I have to add now the pie itself so I tick by to duplicate it.
I have by 3 double E and all I have to do here is to change it to 3.
Actually there is even a method a bit complicated but very advanced that will allow you to duplicate
the line and immediately it would change the values that maybe you see later in the course.
So here you are now.
Have I done a good job.
Okay.
I've done quite a nice job.
I hope so at least.
And here you are.
I'm gonna give it a funny color will be nice.
Let's look at it in full view.
Actually guys if it took me six seven minutes to explain to and do this one I am sure from now on you
can put an infinite number of pies.
The way I do it I do not create 3 or 4 i create 10 pies and then if I must use only two pies all I have
to do is to give them the last one zero and divide the values used.
So it's going to be this one seventy and 30.
And here you have a government only two pies so it's about the percentage.
All of it so you can change them the way you would like and if you make a mistake I'm sure you will
notice.
Actually what's happening from the anime shade would be too fast for one of them.
So this is the way to create multiple slices in a single pie and I hope this was very useful and you
can expand on it and so on.
Now what I'm going to ask you as an assignment is to work on the text.
Okay.
You notice we have the text here but now this text here.
If I press double E it is linked to animation by 1.
So obviously we need to replicate this several times to put them around.
Thank you very much for listening and I will see you in the next lecture.