Hi Guys welcome to linear interpolation with expressions or interpellation linear.
It's very important that you learn these expressions and also you do a lot of practice because believe
me you can do great animations using them.
Happy Birthday small animation for you.
I hope it looks neat.
There is this little boy that is oscillating left and right using the loop of Simpang and to keyframes
if you play the animation he goes to the right then to the left.
If you look at the motion path you will notice that the motion path is a linear motion path but it is
busy interpolated.
So if you right click over here you come to different interpellation the special interoperation is continuous
busy.
And I adjusted the handle somehow you can make it even better the way you would like.
So the ball actually is moving on in motion path was coordinated of X and Y and you can see the animation
goes between 235 for the X and at the end here.
I think it's 16 90 for the X what we'd like to do is this oscillator here.
When the ball is on the side it's also rotate.
Open the radio station just over here.
OK.
Something like 55 or 65.
And then when the ball is on the other side here I want this guy here to rotate now.
On the other side here you are two for example minus 65 preferments 65.
How would you achieve this with the clip actually if you tried to keep the rotation to the position
X you're going to have a very funny value because it's only growing in value and is really not what
you want to achieve just rotating on its anchor point.
So that's not the solution.
The solution here is to use a special expression it's called linear expression under the interpellation
group on the small arrow here.
Go to interpellation and you have here several linnæus and ease and you have a linear one with minimum
and maximum of two values and you have the ease with minimum maximum and the values.
These are the ones that you are going to use here.
I would select in any year say exactly how it works.
Well it's very easy by the way.
D is what you want to evaluate and you want to see when the richest D.M. give it value 1 and when D
which is the maximum give his value to as simple as this the minimum for value 1 the maximum for value
2.
In between the minimum and maximum interpolate a value between value 1 and value 2 or into Prete a value.
So it will find a good value through a linear algorithm and return it to they call.
Let's do it.
You know it's easier to do it than to discuss it.
So what I'm going to evaluate here is the position X. So I'll take the pick up and bring in the position
X here.
So the minimum here is 235.
That is the start of the animation on the left side.
So right here to 35 and come on space.
The maximum is when it's over here.
Don't worry about the error will correct.
The maximum is over here.
It's 16:19.
So the maximum and say 16 90.
So now I found out the minimum value and the maximum value for what I'm evaluating which is different
for positions you solve for the value of 235.
What value will I want to return to the rotation.
We have looked at it.
We said 65 degrees right guys.
40 maximum or 60 90 over here what is the value.
I want to return to the rotation and we looked at it we said minus 65.
I hope so.
It's not the other way.
OK.
Minus 65 and we did the rest.
So now for 235 returned 65 for 60 90 return 165 in between 235 and 60 90 return or into it evaluate
between 65 and minus 65 this click out.
Wow.
I did a good job guys.
That's what's happening.
We are getting them together.
It is so easy to use the Linnea actually what you have done interpolated the value of the position into
a value of the rotation and it's so cool guys if you come in between here and you change your position.
OK just like this.
That's what's happening.
So good guys.
OK let's create another keyframe over here and let's move the position down and move the X that's our
interest not what's happening.
And if Intel played the game at the only trick there is to not exceed the maximum and do not exceed
the minimum of the position and actually have a very nice animation here with the timing select all
the key frames right click and go see a roll across time.
So we have the same timing.
OK.
Here you are not this how this one is just following.
Just use your imagination guys you have a spaceship following another spaceship you have a guy you know
pointing a gun for example or I know a periscope coming out and trying to find the submarine.
You can use this linear interpolation to create such animations at 100 percent.
Thank you very much for listening.
It's time for you now to go to after effects and stop playing with the linen interpellation and interpolate
the next value into rotation.
I will see you in the next lecture was more about interpellation.