Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions position over time when triggered

  • Dan Ebberts

    March 4, 2009 at 4:22 pm

    Something like this, probably:

    dur = 15; // duration of move = 15 frames
    dist = 25; // distance to move

    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time){
    n–;
    }
    }

    if (n > 0){
    t = time – marker.key(n).time;
    y = (n-1)*dist + linear(t,0,framesToTime(dur),0,dist);
    value – [0,y]
    }else{
    value
    }

    Dan

  • Jeremie Moore

    March 4, 2009 at 6:34 pm

    Works like a dream!!

    Thank you Dan.

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