Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Question about blinking expressions

  • Question about blinking expressions

    Posted by Pero Marjorie on December 15, 2021 at 2:03 am

    I found a very useful blink expression.

    In this expression, I want to control the blink rate of the start and end points.

    Is there any way to solve this?

    <font style=”vertical-align: inherit;”><font style=”vertical-align: inherit;”>var blinks = 5; // The number of times to blink while fading in. you can change this and it will recompute for you

    var blinkFrames = blinks*2;

    var inFrame = timeToFrames(thisLayer.inPoint);

    var outFrame = timeToFrames(thisLayer.outPoint);

    var currentFrame = timeToFrames(time);

    if (currentFrame < (inFrame + blinkFrames)) {

    var deltaFrame = currentFrame – inFrame;

    if (deltaFrame % 2 == 0) {

    0;

    } else {

    linear(deltaFrame,0,blinkFrames,10,value);

    }

    } else if (currentFrame < (outFrame – blinkFrames)) {

    value;

    } else {

    var deltaFrame = currentFrame – (outFrame – blinkFrames);

    if (deltaFrame % 2 != 0) {

    0;

    } else {

    linear(deltaFrame,0,blinkFrames,value,0);

    }

    }
    </font></font>

    Pero Marjorie replied 4 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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