Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Marker duration triggers scale

  • Marker duration triggers scale

  • Jean Livenais

    October 2, 2022 at 3:40 pm

    Hi,

    I d’like to zoom a video multiples times during the duration of markers along the timeline.

    One zoom at 120% and another 140%.

    When the markers are over the scale goes back to 100%

    It is not necessary to use linear or ease transition.

    Here is an example.

    Thank you for your help.

  • 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!

Viewing 1 - 3 of 3 posts

Log in to reply.

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