Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Move marker of a layer depending on its length

  • Andrei Popa

    October 6, 2023 at 12:37 pm

    You can’t move markers with expressions, but you can modify your expression so it does not need markers anymore. And it will also be faster to render. Somehting like this to replace the part that you posted should work

    startDur = 5;
    endDur = 15;
    startDur = framesToTime(startDur);
    endDur = framesToTime(endDur);
    if (numKeys > 0) {
    t = linear(time, inPoint + startDur, outPoint - endDur, key(1).time, key(numKeys).time);
    valueAtTime(t);
    } else

    You can modify the frist startDur and endDur to how many frames from beginning and end you want the animation to start.

    I dont know how the rest of your expression looks like to also modify that part.

  • Ludovic Chan

    October 7, 2023 at 1:22 pm

    I just had to delete the “else” cause I got an error then it works great ! Thank you so much I really appreciate it 🙂

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