 Hello everyone and welcome back to another Adobe After Effects tutorial. In this one, I'm in After Effects 2020. I'm going to show you how to loop an animation or repeat an animation for the entirety of this composition. Now a lot of people, a lot of animators want to do this because let's say you've got a character and he's playing a guitar and you want him to be strumming for the entire, the entire sequence, you know, you don't want to just have to keyframe it, keep keyframing it back and forth, back and forth. You can go ahead and use an expression which I will show you how to do right now. Now I've drawn a nice little simple square here. Obviously I'm not going to win any awards for this but this is just to teach you the technique. So I've got the square and you'll see here that I've got it. I want to hit play here or spacebar. It goes across the screen and then it goes back to where basically where it started. Now what I want to do and what I want to teach you here is how to do this so that it will keep doing this back and forth, back and forth across the entirety of this composition all the way over to here. Now the way that you're probably most familiar is you can go ahead and if you click on position here you can go ahead and select these keyframes, go to edit, copy them, move your playhead to the last one and then edit paste and where the hell's paste right there it is and you'll notice that we, you know, we could just keep on, you know, adding in more keyframes like this. This is one way to do it but it's slow and it's tedious and it's not as good as this way. So I'm going to show you the other way. I'm going to hit command or control Z to undo that. Now we're back to where we were where it just sort of goes across the screen. The trick here is very, very simple. Make sure you're clicked on position. The next step is you want to go up to animation and under animation you'll see add expression. Left click on add expression. When you do that you're going to see here under, in case you don't see it, it's under position and it's going to say expression position and you're going to see these four little icons. You want to left click on the expression one here. This looks like the YouTube video icon but it's the expression one. Left click on that. You're going to get this little menu pop up and you want to go to property and under property you want to go to loop out. So left click on loop out and remarkably that does it. That will do the whole trick here. I'm going to spacebar here and you're going to see there's only three keyframes but it's looping it now. So throughout the entirety of the composition it's going to go ahead and do this over and over. So again there are lots of reasons to do this. If you want to take a deeper dive in you can click on the graph editor and let's see here let's click on position and yeah yeah I messed that up sorry. Let's just see where am I. We want to go to different graphs sorry. We want to show expression editor. We want to show edit value graph and if I can just reset it to where I'm supposed to be here we go. You're going to see here these dotted lines on the position and that just basically means that it's taking these keyframes and it's going to repeat them throughout the remainder of the composition guys. So in case you just wanted a deeper dive there. That's all there is to this tutorial guys. This is a very useful technique for you animators out there. I've got a ton more stuff coming up. Stay tuned. Be back soon.