Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Eyelids Flutter

  • Posted by Paul Prescott on October 29, 2008 at 3:12 pm

    I have a precomp of a character flapping its wings using pingpong cycle expression. I use this precomp in the main timeline. I would like to add eyelids that randomly flutter.

    Should I add them to the precomp or main timeline and what expressions will make them flutter?
    (by flutter i mean change the opacity on and off)

    Paul Prescott replied 17 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 29, 2008 at 4:52 pm

    I’d do it in the character precomp and maybe use an Opacity expression like this:

    blinkDur = 2; // blink duration (frames)
    howOften = 30; // average blink time (frames)

    seed = Math.floor(timeToFrames()/blinkDur);
    seedRandom(seed,true);
    randomVal = random(howOften/blinkDur);
    if (randomVal <= 1) 100 else 0 Dan

  • Paul Prescott

    October 29, 2008 at 6:51 pm

    I guess people tell you this all the time…. you are brilliant! Thank you.

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