motion graphics eXchange

Animate scale at each layer-time marker

No thumbnail available
From Adobe's LiveDocs:
After Effects CS3
Useful things

Views: 2685
visit |  share this  error? 
Apply the following expression to a Scale property to make a layer wobble at each marker:
//applyTo: scale
  n = 0; 
  t = 0; 
  if (marker.numKeys > 0){ 
      n = marker.nearestKey(time).index; 
      if (marker.key(n).time > time) n--; 
  if (n > 0) t = time - marker.key(n).time; 
  amp = 15; 
  freq = 5; 
  decay = 3.0; 
  angle = freq * 2 * Math.PI * t; 
  scaleFact = (100 + amp * Math.sin(angle) / Math.exp(decay * t)) / 100; 
  [value[0] * scaleFact, value[1] / scaleFact];


marker scale time

(Min. Version: After Effects CS3, Category: Useful things, Type: Expressions)
posted by MicGyver on Sep 16, 2008


Related topics:

Expressions triggered by a marker

No thumbnail available
Here is an expression for having a marker trigger a squish and squash. Put the expression on Scale.
After Effects 7
Useful things

Views: 11388
posted by MicGyver on Feb 15, 2009

Focal Length Zoomer

No thumbnail available
This expression will allow you to zoom a camera in After Effects using real-world focal length values.
After Effects 7

Views: 4854
posted by MaxX on Dec 26, 2008

autoOrientCamera 2.0

Thumbnail for: autoOrientCamera 2.0
This script creates a new camera and sets point of interest, position and orientation keyframes so that the camera successively faces each comp layer.
After Effects CS3
Scripts (jsx)

Views: 4707
posted by MicGyver on Jul 01, 2009



follow us on in touch on facebook



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