Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions MultipleTime Remap using multiple markers

  • MultipleTime Remap using multiple markers

    Posted by Mackie John on November 23, 2020 at 5:48 am

    I have two time remamps setup on a pre-comp. One is doing a fadein, other is doing a fade out. This i want to control using 2 markers on another layer. The first marker should trigger the time remap of the fadein and the second marker should trigger the fadeout timeremap as in the pic below.

    I have the following script from dan’s website but this seems to just trigger the first TimeRemap it doesn’t consider the 2nd marker and trigger the 2nd timeremap.

    How to achieve this ?

    action = comp(“Comp 1”).layer(“Marker”);

    n = 0;

    if (action.marker.numKeys > 0){

    n = action.marker.nearestKey(time).index;

    if (action.marker.key(n).time > time){

    n–;

    }

    }

    if (n == 0){

    0

    }else{

    m = action.marker.key(n);

    myComment = m.comment;

    t = time – m.time;

    }

    try{

    actMarker = action.marker.key(myComment);

    if (action.marker.numKeys > actMarker.index){

    tMax = action.marker.key(actMarker.index + 1).time – actMarker.time;

    }else{

    tMax = action.outPoint – actMarker.time;

    }

    t = Math.min(t, tMax);

    actMarker.time + t;

    }catch (err){

    0

    }

    Mackie John replied 5 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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