Top 5 After Effects Expressions for Better Designs
New to using expressions in After Effects? These 5 AE expressions are a great start and will add power to your After Effects workflow.
Expressions can seem really scary if you are new to After Effects. It took me a while to be comfortable with expressions to the point that I could write them on my own instead of copying from a Google search. They take time to learn, so have patience with them! There are many useful After Effects expressions that can automate processes and make your animations even better.
According to motion designer and Premiumbeat blogger Sean Frangella, the following expressions are the top 5 to learn in After Effects. These provide a solid base for getting comfortable with AE expressions, but they only represent a small sample of what is possible. If you want to learn more about using expressions try checking out previous post: How to Use Expressions in After Effects
Feel free to copy and paste these expressions into your own projects. Implement them into your AE workflow often and pretty soon you won’t need to copy them at all!
In the following video tutorial, Sean Frangella shows us how to use all 5 of these expressions along with a few other great tips.
This video was created by Sean Frangella. Along with having an awesome YouTube channel, Sean creates Cinema 4D tutorials here on the PremiumBeat blog. If you want to find some more insightful tutorials from Sean or chat with him, check out his facebook page.
The wiggle expression is by far the expression that I use the most in After Effects. Wiggle expressions do exactly what you might imagine, they wiggle an object across random values. This expression can be used to make your scene seem more organic and natural.
The first number is the number of wiggles per second and the second number is the value of the wiggle. So, a position parameter with an expression of wiggle(2,30) will wiggle 2 times per second at up to 30 different expressions.
The time expression is perfect for objects with perpetual motion. For example if you wanted to have an object rotate indefinitely you can simply add the word time as the rotation parameter and your object will rotate 1 degree for ever second. The time parameter also works with basic math equations, so if you wanted to have the previous object rotate 30 times faster, you can simply have the expression time*30.
The loopOut() expression creates an infinite loop that will last forever. However, unlike the wiggle and time expression the loopOut() expression requires keyframes to be present. So if you had an object that rotates in a full circle in the span of 1 second you could add the loopOut() expression and the motion will be repeated forever.
seedRandom() is just a hair more complicated than the previous keyframes, but it completely makes sense after you think about it for a few seconds.
If you were to change a layer’s order in the timeline from slot 3 to slot 10 it’s random seed would change, thus your wiggle will now look completely different. This isn’t a huge problem, but sometimes a certain wiggle iteration looks absolutely perfect and you don’t want them to change if your project order changes. To fix this you can use the seedRandom() expression. This expression locks random seeds so that your expression doesn’t change if you add in new layers.
Math.round() is an expression that rounds up decimal numbers to the nearest whole number. This is perfect for doing countdowns or numbers in the source text. Simply add your normal expression into the Math.round() expression parenthesis in your source text expression box and all your numbers will be rounded up.
Have any other expressions that you frequently use?
Share in the comments below.