Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Oscillate to make lights run

  • Oscillate to make lights run

    Posted by Ken Latman on September 12, 2006 at 4:55 pm

    I trying to make some lights blink like a marquee board. I created some lights in Invigorator Pro; an odd set and an even set. Both sets of lights fall on the sign and move in the same movement through the composition.
    These files were rendered out and now sit in my compositon. I think what I need an expression to apply a glow that oscillates on one layer (call this odd bulbs) and one that runs counter in its oscillation (call this even bulbs), I’m just not sure of the expression I need to write.
    Any ideas? Dan Ebberts help would be much appreciated.

    Ken Latman replied 19 years, 11 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    September 12, 2006 at 5:36 pm

    Maybe something like this for one layer:

    freq = 2; //oscillations per second
    intensity = 1; // max glow intensity
    intensity*(1 + Math.sin(freq*time*Math.PI*2))

    and like this for the other layer:

    freq = 2; //oscillations per second
    intensity = 1; // max glow intensity
    intensity*(1 – Math.sin(freq*time*Math.PI*2))

    Dan

  • Dan Ebberts

    September 12, 2006 at 5:38 pm

    Forgot to divide by two. Should be:

    freq = 2; //oscillations per second
    intensity = 1; // max glow intensity
    intensity*(1 + Math.sin(freq*time*Math.PI*2))/2

    freq = 2; //oscillations per second
    intensity = 1; // max glow intensity
    intensity*(1 – Math.sin(freq*time*Math.PI*2))/2

    Dan

  • Ken Latman

    September 12, 2006 at 6:07 pm

    Dan,

    You are the best! Thanks so much!

    Ken

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy