FORUMS: list search recent posts

Alternating 3 layers with the blink expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sam Nicklin
Alternating 3 layers with the blink expression
on Jan 17, 2013 at 8:09:36 pm

I have discovered a great way to alternate between 2 layers using the opacity control expression below but my question is, how could I adapt the expression to alternate between a third layer as well?

I'm basically looking to loop between 3 separate layers every ~4 frames i.e each frame has 4 frames on and 8 frames off at a staggered times so that a different layer is displayed every ~4 frames.

Thanks

Layer 1
blinkSpeed = 2;
t = (Math.cos (blinkSpeed*time*Math.PI*2)+1)/2;
v = linear(t, 0, 1, 0, 1);
Math.round(v)*100

Layer 2
blinkSpeed = 2;
t = (Math.cos (blinkSpeed*time*Math.PI*2)+1)/2;
v = linear(t, 1, 0, 1, 0);
Math.round(v)*100


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]