Guys in this lecture you're going to focus on how to write or add expressions without using the whip
now you're going to get serious about the expression.
Start writing them and see how barometers can work in an expression.
Now there's the movement here of the circle comes over here.
OK.
And then the animation stops completely.
That's pretty cool.
Nice animation but then what happens if I want this bowl to continue being animated till the end of
the composition without having to you know replicate the keyframes and if the composition goes longer
I have to give frames.
I suppose that this I want to use a simple expression.
The expression I'm going to show you now is very useful and widely used.
Let's come to the beginning here.
And you wanted to add an expression to the position so it can continue playing the keyframes over here
at the end of the composition so of course I press Alt click on the stopwatch and then there is the
small arrow here.
If I click on it comes to property there are here nice expressions such as the we will see about that
there is the loop out.
This is what we are going to use now and we see about the others later on.
Let's take the loop out.
And you notice the loop has a type which is cycle and number of keyframes number keyframes is set to
zero.
Well these are really not the paramita is just the syntax.
You can just come and delete them.
OK so we need all of them except the panties is no not this how loop out is spelled the O is uppercase.
Please don't write it in small case it will make a mistake.
The expressions are case sensitive and language sensitive.
By the way.
So now if you play the loop out we'll start playing the first keyframe after the last keyframe not happening.
This is the Laskey frame the keyframe that displayed after all the motion that is played that is the
first keyframe you see how it jumped without having any keyframes on the timeline.
Of course.
So the loop out will loop your keyframes from the last keyframe starting from the first one till the
end of the composition
so having the last keyframe you play the first keyframe Let's go back to the small arrow here and go
to property and you have loop out here was a cycle a number of keyframes Let's try cycle and a couple
of them fact there are only two in the cycle here you can replace it for example with Bing Bang.
I put that black dots right being punk.
This is one image is that you can change like this.
I would delete the number of keyframes.
OK if you don't care about it for now and even I can delete that type because this is just syntax and
if you click out here you are if you play now the ping pong effect is that it does not continue from
the first keyframe it continues from the previous keyframe.
Notice how the ball when it comes to the end just overhear the previous keyframe.
Let me show you now.
So you are at the last frame the next motion that is played is the previous keyframe from the last one.
Here you are.
OK.
Then you have the 30 frame or the fourth one and it's playing again.
So actually it is now binging comes today and it will be bonding.
OK if you like to so now this is pretty practical.
Notice how the stuff is still moving with the loop out there is also the number of keyframes you remember
there was a number.
If you put a comma and there is a number you could ID I would add for example to at this point the pong
will only play the last two keyframes because it's a loop out.
So it's really work on the last keyframes.
If you play here after the Laskey frame it plays the previous one then go back to the last one.
You got this.
Ok cool.
So you have a very nice animation here.
Imagine the things you can do of a card a planet.
I don't know what so much even the characters that we have animated with the pen tool you can use the
bank too.
Let's try for example ping pong for you now.
OK.
So it's going to be cooler even if you are cancer the end and then goes back one that's the PVC keyframe
then the first keyframe from the beginning.
So this is the job of loop out and it's pretty useful please start using it.
The other one we going to work on is the loop in fact come to property you have the loop in cycle and
number of key frames.
Let's just put the loop in.
If you play like this there's not going to do anything because the loop in is the inverse of the loop
out the loop it now works the other way.
Let's go to the end of the composition by placing and select all out frames and click and drag them
and stop them to the time line at the end.
So the loop in we're starting from the last keyframe and then go back to the first keyframe.
You are not this how it started playing and we don't have any keyframes yet.
OK that's pretty good.
Nyunt then emission you get created with a number of keyframes.
Let's say we add two and it's going to be pretty cool if you are not this how it's playing them according
to Time of course.
Start with the first one.
Second one comes back to the beginning and so on.
Of course you can add here the Bing Bang.
So I would write the pot being Bond
and close the quads.
And don't forget the comma here and here you are.
I think it's OK.
So not this what's happening let's go back to the beginning and you play it so it goes front and back
from the beginning.
OK.
From the first key frames here and then it will continue.
The last frame and notice how it's playing.
Only the Tuki flame's loop in is the inverse of the loop out.
Now this is very easy to use but showing it you do.
The first time you might say oh wow this is difficult actually is so easy.
Now the way to work is like this.
Let's move this one.
We don't want it.
Select all the keyframes and just map them to the beginning here.
I will come over here.
Press alt or option the mark and click on the stopwatch and that type loop out.
And here you are.
You have your expression looping out everything not always you want to come to the arrow and pick the
expression you can just click here and type it.
Thank you very much for listening.
I hope this was useful.
Maybe it was fun.
And now it's up to you.
Start using the loop out.
Thank you.
I'll see you in the next lecture.