Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Starting / stopping expressions

  • Dan Ebberts

    August 20, 2011 at 7:39 pm

    It depends on exactly what you’re trying to do, but generally it would look something like this:


    timeToStart = 5; // start expression at 5 seconds
    if (time >= timeToStart){
    (your expression goes here)
    }else{
    value

    Dan

  • Alistair Gallop

    August 20, 2011 at 9:49 pm

    so for example if I wanted the pendulum expression to start at 5 seconds it would look like this?

    if (time >= 5){
    veloc = 7;
    amplitude = 80;
    decay = .7;

    amplitude*Math.sin(veloc*time)/Math.exp(decay*time)
    }else{
    value

    Thanks

    Alistair

  • Dan Ebberts

    August 20, 2011 at 10:15 pm

    Yes, except that I left out the closing bracket on the else part:


    if (time >= 5){
    veloc = 7;
    amplitude = 80;
    decay = .7;
    amplitude*Math.sin(veloc*time)/Math.exp(decay*time)
    }else{
    value
    }

    Dan

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