Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions After Effects Expression

  • Dan Ebberts

    July 2, 2023 at 12:49 pm

    Expressions don’t have memory, so variables don’t survive from one frame to the next, but you can calulate your x value based on the current time, like this:

    var x = 0;
    var y = 2;
    var z = 10;
    x += Math.floor(time/y);
    x = Math.min(x,z);

    or elapsed time since the layer’s in point, like this:

    var x = 0;
    var y = 2;
    var z = 10;
    x += Math.floor((time-inPoint)/y);
    x = Math.min(x,z);

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