![]() ![]() One other type of loop out that we can do is pingpong. That adds an ease to the outgoing key frame, and all the repeating loops follow suit. I'll select this one key frame and come over here and select Easy Ease Out. So, if we were to make changes to this original key framed animation, watch what happens to the loops. This will visualize what the expression is doing to our original values, and in this case, we're starting over from frame 45 down to frame zero right here, or frame one, and looping this animation over and over again. And the button right next to it is the Show Post Expression Graph. But because we're altering this value with expressions, what does that look like and how does that affect our graph? Let's come over here, turn on our expression. It's going to hold at frame 45 until the very end of the composition. If we disable this, that's what this is telling us. Now note that we have this dashed line here, and that is representing our original key framed values. And it's basically the key frames that we saw earlier. And right now I'm just going to view the value graph, and just make sure that our property is selected. I'll click on the graph editor, and one thing we want to make sure that we have is under these options, make sure Show Expression Editor is enabled. Let's see what this looks like in terms of the graph editor. And as we scrub through, we keep going, and it does it over and over again until we hit the end of our composition. ![]() And that's because this animation is looped thanks to this expression. And when we get to the very next frame, you'll note that the time remap is now reading one. And when we get to the last key frame, we're here at frame 45 of our animation. So if we scrub through this, you'll notice that my frame count for the time remapping is starting at zero. Once it hits the last key frame, start over again. Basically what this line of code is telling After Effects to do is start repeating or cycling through the key framed animation. So for this, I'm going to come over to the Property family and I'm going to select Loop Out. Over here we have this little fly out menu that allows us to insert basic lines of code into our expression. If we tap on this, you can see that the red numbers turn back to blue, indicating to us that the expression is off. Over here we have a button that enables or re-enables the expression. Underneath we have the expressions window where we'll do the actual typing of code. The original blue value now turns red, and that's After Effects indicating to us that a particular property is driven by expressions. When we do, you'll notice a couple things. To add an expression to a property, either right-click on the property and select Edit Expression, or hold alt or option and click on the property stopwatch. And we're going to manipulate these key frames by using expressions. After Effects gives us two key frames for the start and the end. Let's right-click on this layer and come up to Time. Let's use time remapping to get looping involved. And here you can see that it only plays once. I'll nest this into a new composition here, this 03 comp. ![]() In this composition, I've got an animation of a wifi signal and it just animates on and animates off over the course of what, 45 frames, 44 frames? Let's see how we can loop this. Expressions can be daunting, but it's helpful to see how the basics work and how they can speed up your workflow. They can be used in place of key frames or work in conjunction with them. After Effects offers users the ability to simplify and automate tasks using lines of code in a system called expressions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |