motion graphics eXchange
top

Blink layers in/out

Thumbnail for: Blink layers in/out
This is a script that is used to make layers blink in and out automatically tracking with their in and out points.
After Effects CS3
Transitions
Expressions

Views: 6606
Permalink
visit |  share this  error? 
The keyframes for opacity will look like this:
0,20,0,40,0,60,0,80,0,100 and reverse for the out.

Apply this expression to the opacity:
//applyTo: opacity
// blinks in with 5 blinks
blinks = 5; // The number of times to blink while fading in. you can change this and it will recompute for you

blinkFrames = blinks*2;
inFrame = Math.round(in_point/this_comp.frame_duration);
outFrame = Math.round(out_point/this_comp.frame_duration);
frame = Math.round(time/this_comp.frame_duration);

if (frame < inFrame + blinkFrames){
delta = frame - inFrame;
if (delta % 2 == 0){
0;
} else {
linear(delta,0,blinkFrames,10,110);
}
} else if (frame < outFrame - blinkFrames){
100;
} else {
delta = frame - (outFrame - blinkFrames);
if (delta % 2 != 0){
0;
} else {
linear(delta,0,blinkFrames,100,0);
}
}
by ericwood, Helium14


(Min. Version: After Effects CS3, Category: Transitions, Type: Expressions)
posted by MicGyver on Mar 07, 2010

 

Related topics:

Folding Template

Thumbnail for: Folding Template
folding and unfolding template free to use.
Require After Effects CS6
After Effects CS6
Other
Projects (aep)

Views: 34603
Permalink
posted by fsimoni on Nov 05, 2012

Product, Service or App Promotion

Thumbnail for: Product, Service or App Promotion
After Effects Template. Promote your app, product or service
After Effects CS5
Useful things
Projects (aep)

Views: 16578
Permalink
posted by RedSpikeFx on Oct 30, 2012

Clean Logo V2

Thumbnail for: Clean Logo V2
After Effects CS4,CS5,CS5.5 and CS6 template logo reveal
After Effects CS4
Other
Projects (aep)

Views: 20795
Permalink
posted by aedaddy on Aug 19, 2012


 

 

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!