Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions y Position move with hold keyframe

  • Jk Patel

    January 4, 2017 at 11:48 am

    I have a similar question:

    I want my later to move by 300 pixels up on the Y axis every time I hit a marker on the layer. Can this be done using an expression?

  • Dan Ebberts

    January 4, 2017 at 6:49 pm

    Like this maybe:

    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time)n–;
    }
    value – [0,n*300]

    Dan

  • Jk Patel

    January 5, 2017 at 11:12 am

    Works perfectly.
    Thanks Dan.

Page 2 of 2

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