After Effects Expression Linear Position

Expressions are the best tool to enhance your animations

Hey there! Today I’d like to share with you my favorites Adobe After Effects expressions. Your expressions add value to your work. It automates the way you animate your assets, it makes calculation and solves algorithms for you. Svp.

How do I integrate an expression ?

Simply go to the property you want to animate and Alt+Click the clock! A text area appears, here is your expression editor area!

Linear

Math.round

Six Essential Expressions for Creative Coding in After Effects. School of Motion takes you through the 6 basics that, indeed, every animator should know. Rotation Expression. Wiggle Expression. Random Expression. Time Expression. Anchor Point Expression. Bounce Expression.

When you need to round an expression, exemple : a slider effect on an animated text (I did a tutorial on this function, go check it out!).

Bounce effect

35 Useful Expressions In After Effects. Sergei Prokhnevskiy. There is always a need for speed in this fast paced motion design world. It’s definitely something we can all agree on. You can always get more money, but you can’t get more time. That’s the truth. Every day I look for ways to speed up my workflow, and there are so many ways to. A wiggle expression in After Effects is a piece of JavaScript code that allow to move,scale,rotate a layer back and forth in a random fashion. The basic code look like this wiggle(5,10) The 1st number 5 define the number of time your layer will wiggle per second. Let’s take a look at the difference between linear animation and smooth animation in After Effects. Linear Animation. By default, when you set a keyframe in After Effects, it will use a linear keyframe interpolation, meaning it won’t smooth out any part of the animation. Your animation will essentially go from 0 to 100 mph in a single frame.

When you need to round an expression, exemple : a slider effect on an animated text (I did a tutorial on this function, go check it out!).

After Effects Expression Linear Position Example

Loop effect on a composition

After

After Effects Expression Linear Position Diagram

http://www.nabscripts.com/expressions/controle_1.html
First, enable the timeline remapping in Time > Enable timeline remapping, extend the composition far enough, then apply the expression (Alt/click on the property clock in question).

Wiggle

You can apply this expression to a lot of different property, for example: position, scale, opacity, rotation and others…

This expression will be wiggling from “a” to “b”. You’ve got to replace those two values by numbers. For example “0” and “100” on the opacity property if you wanna make a random effect from 0 to 100%.

+

Apply the following expression to a property to start wiggling it at time 2 seconds and stop wiggling it at time 4 seconds:

How to make wiggle expression looping ?

Interesting thing to know if you wanna make the wiggle expression looping ! Read this article from motionscript.com. Thanks to Florian for the contribution :-).

Here is a pretty good set of expressions, very usefull, by Emanuelecolombo.it!

After Effects Expression Linear Position

Inertia – Position & Rotation & Scale (by emanuelecolombo.it)

Bounce – Position (by emanuelecolombo.it)

After Effects Expression Linear Position

Elastic – Position (by emanuelecolombo.it)

Back – Position (by emanuelecolombo.it)

After Effects Expression Linear Position Calculator

Squash & Strech – Scale (by emanuelecolombo.it)

Undulation (by emanuelecolombo.it)

Jumpy Wiggle (by emanuelecolombo.it)

After Effects Expression Linear Position Example

Grid (by emanuelecolombo.it)

After Effects Expression Linear Position Test

If you want to use the speed/velocity of a layer's movement to drive an effect ..
After Effects CS3
Useful things
Expressions
Views: 10948
Permalink
If you want to take the speed for a layer's postional value, you can use the following expressionThis expression has the advantage of using the speed information coming from a layer's position and applying it to whatever parameter you want it to influence.
For example, if you are moving a layer through a comp, and want the speed of the movement to influence the brightness of the layer, you would just copy and paste this expression to the 'Brightness and Contrast' filter, in the Brightness parameter.
Why the /3-50?
Simply because the speed of the layer's position is expressed in 100's (i.e the speed can go from 0 pixels/s to a quite large amount), whereas the brightness goes from 0 to 100. So if you divide the values for speed by 3, you arrive to a decent value for brightness (the brightness won't be overblown).
The -50 adds more control to this, putting the brigthness down by 50. You could change this for any other number, depending on your needs, but you could also not use it and divide the speed by 5, or more.
by malex

Keywords

speed, velocity, movement
(Min. Version: After Effects CS3, Category: Useful things, Type: Expressions)