motion graphics eXchange
top

A simple blink on and off expression

Thumbnail for: A simple blink on and off expression
Layer blinking on and off via expression.
After Effects 6
Transitions
Expressions

Views: 877
Permalink
Use this expression at opacity.
//applyTo: opacity
blinkSpeed =10;
n = Math.sin(time*blinkSpeed);
if (n<=0) 0 else 100;
Math.sin(x) will always output a number between 1 and -1. As x increases, Math.sin(x) will output an oscillating series of numbers that go back and forth between 1 and -1, forever and ever. As x increases in speed (ie, how fast the numbers are changing), this series will increase in speed.

In the above expression, you see Math.sin(time*blinkSpeed) being assigned to a variable, n. In the next line, there is a simple if/else saying “If n is less than or equal to 0, pass the value of 0 opacity, otherwise pass the value of 100 to opacity.” As n oscillates back and forth to -1 and +1, the if/else statement is creating a value of either 0 or 100.

Keywords

Blinking layers expression automation speed

(Min. Version: After Effects 6, Category: Transitions, Type: Expressions)
posted by epicentre on May 24, 2010

 

Related topics:

sParticular for Trapcode Particular

Thumbnail for: sParticular for Trapcode Particular
sParticular is a script that helps you with 3D integration when using Trapcode Particular.
After Effects CS3
Particles
Scripts (jsx)

Views: 1004
Permalink
posted by Indy on Aug 04, 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: 5287
Permalink
posted by vfx007 on Oct 10, 2009

distributing layers in a cylinder using expressions

Thumbnail for: distributing layers in a cylinder using expressions
This expression is customizable, and you can change many things including: the radius of the cylinder, the overall rotation of the cylinder, the spacing vertical spacing between rows of the cylinder, and the amount of layer on each level of the cylinder.
After Effects 7
Useful things
Expressions

Views: 704
Permalink
posted by MicGyver on Sep 08, 2008


 

 

follow us on http://twitter.com/mgxchangeget in touch on facebook

 

 

motion graphics eXchange - Get The Search Engine