Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Marker duration triggers scale

  • Filip Vandueren

    October 3, 2022 at 11:43 am

    Hi Jean,

    try this as an expression for scale of the layer:

    (function getZoomFromMarker() {

    if (!marker.numKeys) return [100, 100];

    nk = marker.nearestKey(time);

    nki = nk.time > time ? nk.index - 1 : nk.index;

    if (nki == 0) return [100, 100];

    m = marker.key(nki);

    markerEndTime = m.time + m.duration;

    if (time > markerEndTime) return [100, 100];

    zoomFactor = parseFloat(m.comment.split(" ")[1]);

    return [zoomFactor, zoomFactor];;

    })();

  • Jean Livenais

    October 5, 2022 at 5:28 pm

    Thank you Filip, it works perfectly!

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