Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Link two markers to two keyframes

  • Dan Ebberts

    May 22, 2020 at 6:40 pm

    Like this:


    if (marker.numKeys > 1){
    t1 = marker.key(1).time;
    t2 = marker.key(2).time
    linear(time,t1,t2,t2,0).toFixed(0);
    }else
    0

    Dan

  • Douglas Baiden

    May 22, 2020 at 7:10 pm

    Awwwwww dis is just Awesome Many thanks you just grt and very patient say save the world needs you Thank you an get bless a million folds ☺

  • Douglas Baiden

    May 22, 2020 at 11:50 pm

    Hi Dan Thanks for the previous help Please is the a way to reverse this so it is the other way round i want to add this to my project so the user of the template can also get a reversed version Thank you

    if (marker.numKeys > 1){
    t1 = marker.key(1).time;
    t2 = marker.key(2).time
    linear(time,t1,t2,t2,0).toFixed(0);
    }else
    0

  • Dan Ebberts

    May 23, 2020 at 12:36 am

    >reverse this so it is the other way round

    What do you mean by that, exactly?

  • Douglas Baiden

    May 23, 2020 at 1:00 am

    Thanks for the swift responds Dan Ok so the expressions the counter or text value stats from the time where the second marker is with the reverse i want it to be zero so the second marker matches the time it is at eg marker one is 0sec maker two is 30sec the previous expression is 30sec for marker 1 and 0sec for marker two which is exactly what i wanted i want to add a reverse of this so i create a reversed counting from 0 – ………

  • Dan Ebberts

    May 23, 2020 at 2:42 am

    I haven’t test this, but I think it would be:


    if (marker.numKeys > 1){
    t1 = marker.key(1).time;
    t2 = marker.key(2).time
    linear(time,t1,t2,0,t2).toFixed(0);
    }else
    0

    Dan

  • Douglas Baiden

    May 23, 2020 at 3:01 am

    Thanks so much it worked like a charm am very grateful ????

Page 2 of 2

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