motion graphics eXchange
top

Using the speed of a layer to drive an effect

Thumbnail for: Using the speed of a layer to drive an effect
If you want to use the speed/velocity of a layer's movement to drive an effect ...
After Effects CS3
Useful things
Expressions

Views: 6744
Permalink
visit |  share this  error? 
If you want to take the speed for a layer's postional value, you can use the following expression
position.speed/3 -50
This 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)
posted by MicGyver on Oct 15, 2009

 

Related topics:

Kinetic Text Expressions

Thumbnail for: Kinetic Text Expressions
The expressions simply check the velocity of your animations. If you move an objects motion ends abruptly (ie: you didn't easeIn @ 100%) the physics will kick in automatically.
After Effects CS4
Design/Objects
Expressions

Views: 38426
Permalink
posted by MicGyver on Jul 30, 2011

Clouds Presets for AE

Thumbnail for: Clouds Presets for AE
5 realistic clouds in AE with no external plugins.
After Effects 6.5
Design/Objects
Presets (ffx)

Views: 18096
Permalink
posted by inerxia on Feb 21, 2009

Wiggle, rubber, bounce, throw, inertia expressions

No thumbnail available
These expressions save so much time, you might get home earlier tonight just by reading this.
After Effects CS3
Useful things
Expressions

Views: 605000
Permalink
posted by vfx007 on Oct 10, 2009


 

 

follow us on http://twitter.com/mgxchangegoogle+get in touch on facebook

 

 

Full length video training series presented by motion graphics industry professionals. Click here to visit Motionworks website!