Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects simple opacity expression

  • simple opacity expression

    Posted by Bryanisfishing on April 24, 2006 at 9:24 pm

    i’m looking for an expression where I change the opacity of an object from 0-100 over a set amount of time..

    for example

    from 0-10 seconds.. i want “x” amount of keyframes to make an object appear and disappear… rather than creating keyframes..

    basically making an object blink..

    Matthias Gottung replied 20 years ago 2 Members · 1 Reply
  • 1 Reply
  • Matthias Gottung

    April 27, 2006 at 7:44 am

    Hey bryanisfishing

    I played around with the sinus funktion and I found this little line to help you with your problem

    Math.sin((time*0.31415915) *5 )*1000000;

    The sinus funktion makes the value of the opacity go up and down

    the variable time is the timeline variable that feeds the sinus funktion with a continous value

    the strange number 0.31415915 is actually there to calibrate the blinking to almost exactly 10seconds. (correct for more than 1hour)

    the *5 is the “x” value that you would want to change to set the blinking to your needs

    it goes like this
    10seconds / x = blinking time

    so here it would be 10/5 = 2 so every 2 seconds the layer changes the opacity from 0 to 100

    the *1000000 is used so that the blinking isn’t fading.

    I hope I could help you

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