Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions If condition once

  • Posted by Ilya Sire on April 26, 2015 at 8:12 am

    Hello

    Here is my situation. I have 2 layers (A and B). Layer A have a 0°-180° 3D rotate with Dan keyframed overshoot expression. How can i make Layer B disappear when Layer A swing over 180° once and if it bounce back below 180°, it stay disappear.

    Only once hit 180° and value remain.

    please help.Thank you
    Sire

    Ilya Sire replied 11 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 26, 2015 at 5:19 pm

    Try this:


    r = thisComp.layer("Layer A").transform.rotation;
    t = 0;
    invisible = false;
    while (t <= time){
    if (r.valueAtTime(t) > 180){
    invisible = true;
    break;
    }
    t += thisComp.frameDuration;
    }
    invisible ? 0 : 100

    Dan

  • Ilya Sire

    April 26, 2015 at 5:33 pm

    Thank you very much for solving my case Dan. It works perfectly. 🙂

    Sire

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