I Guys welcome to expression again and this is live as you are from a school online that come now in
the previous lecture we have created a pie chart like this and it's crazy we duplicated the layers we
ended up with six letters.
Now what happens if you have you know 12 charts or six chars that you want to display each one of them
for a certain size figure.
How would you do it.
Would you duplicate or layer would you play compose.
And most importantly what would you do when the values change.
Now in this lecture I'm going to show a simple matter where they are going to use a control to be able
to set the values using of course expressions for the percentage and it's going to be a lot of fun and
pretty easy.
So the first thing I want to do is to play compose these three letters.
I'm going to put them in a separate composition and I'm going to call it by one.
Now I have hit by one and open it and look exactly what I have if I'll press eat twice I will have the
source text linked to the end in this composition and also linked to the Trimm path.
And of course I have here the PI.
So the first thing here that it's all controlled by the values of these two keyframes and that inside
this composition.
So how do I what I will come to pie chart here.
This is the main one I'm going to create a new layer.
I can create any kind of layer I can create a null object a shape even on an adjustment that I would
go for adjustment that I will open the adjustment layer here and go to a facsimile set and look at control.
OK.
Now in control the last one will be slider control here.
Step one slider control and drop it.
See how it works.
I'll take another slider control and drop it.
That's not pretty good.
I should have come here says control.
I want to make it very clear.
And if I read this one and duplicate this one I will have control by two.
So what is a slider slider slider.
It goes from 0 to 100.
But of course you can even make it 500 600 whatever he could he won.
So I would come to the slider here and keyframe at zero come to two seconds here and make it 100 percent.
So my slider Now if I press you I will find it's going from zero to 100 percent.
Good luck this player here.
So it doesn't go away.
It stays here.
I will go to PI and look at my end.
I will remove the keyframes from the end and bring it to the beginning because 0 for example if you'd
like and open the expression now I will use the whip to link the end to controlled by a 1 slider as
simple as this.
Now this is what's happening.
It goes from 0 to 100 percent.
If I go to my main competition I go to the Laskey frame.
If I change the value here then it's working fine.
And here you are.
So I have created a control for my composition here or for the PI.
Now I can replicate that and play the control by two.
Let's go to one before and what we'll do we use the area of interest or region of interest and just
drop it as much as we need.
That would be OK and come back second position.
Club comp region of interest come back to the main one now and have you know this is the adjustment
that I would just hide I have here a pre-camp I can size it put it here.
That's good.
Go to my project.
I need to go to the project.
I just want to click here and duplicate this by now.
I have you.
I will open by two.
Let's look at the expressions.
I press easy and not is here what do we have we have composition.
Now the composition is not this gun.
It is by chart domain composition from the pie chart composition.
You take layer adjustment.
OK.
That name is too long.
Let's go to pie chart.
Make adjustments there.
I want to see the name press and there's a control that sense I'll get this from the control or the
percent come back to buy one.
You know does it change the name.
Come back to buy to look at it carefully from composition pie chart.
Take their control percent and then take the effect that is inside this layer.
So if you come to a pie chart you'll notice here control percent layer has an effect and this effect
is controlled by one and controlled by two.
So actually you are linking the effects now.
And from controlled by one big effect called slider.
OK.
So we have the slider here.
This is the effect is called slider when you came to here.
You're not as you have slight of control.
So that's the effect you are taking from here right now.
I don't want controlled by one for two.
I want controlled by two.
And here we are.
And now if I come back to my main chart and go to a project by two and drop it I will come to control
by two and keyframe at the same.
I can confirm the slider here at zero come to two seconds or before or after anytime you want.
I make it a certain figure for example you notice how the slider can go beyond 100 let's say 55 and
now I have full control of all my buys in the within the control percent layer.
And that is very powerful.
You can move your keyframes them faster and so on.
Let's create another PI.
I will go to buy to duplicate that it's become pie 3.
I will open by 3 and right here just by 3.
OK.
That's the slider.
Now the slider doesn't exist.
Let's go back here.
Take this one and duplicate it.
That's like the three it corrected here.
Fine.
It seems it's working.
I would come to the project deck by three Robert here and I can make it smaller.
Ok I will go to control by three.
It is already keyframe.
And here you are.
You have it.
Let's move it this way.
And now you have many graphs.
Of course you can adjust them.
You can lay them out the way you want to make them you know quite interesting.
But also you have the power to come to the background here it change the color of the background here
to whatever you want.
OK you notice that the pie has a color feel we remove it.
Let's move it.
Now you change colors come back to buy one.
And here you have so many things.
How do you control this.
That's very easy.
You can't come to the control preset here layer and change your keyframes do whatever you want.
Make them you know come longer with more time or less time.
The way you like it and what we do learn here we learned how to use the preset this has an effect.
In fact the control one and it's a slider control slide controls are very much used and you can't really
create a lot of control with the slightest control.
Also duplicating slider control and controlling from one single there is a lot of power for you lots
of simplicity and peace of mind that you know if you have to change your fingers you change the percentage.
It's very easy just in one single place.
Now I hope I explained everything to you because there is a lot here that can be done and there is a
lot of creativity.
I would like you to go to after effects and start using the slider control.
Of course you have color control control and stories like this here that we will use later in this course
and learn about them.
And this is the section about expression control let's remove the control here.
And if you come to expression control you click and you see you have three different control angle controlled
checkbox colors and so on that are very powerful that will be used later on.
Thanks very much for listening.
I hope this was very useful for you.
Please go to aftereffects.
Do your first pie chart compose it and make as many pictures as you want.
Organize them in a beautiful way you like you know make them all with circles and you can adjust them.
Put them on the side.
Change the colors and create your project.
Now not this this is not only infographics.
It can work for anything for any project you are doing or even for on work and it will help you a lot.
Thanks very much.