Activity › Forums › Adobe After Effects Expressions › Link two markers to two keyframes
-
Link two markers to two keyframes
Douglas Baiden replied 6 years, 4 months ago 2 Members · 17 Replies
-
Dan Ebberts
May 22, 2020 at 6:40 pmLike 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 pmAwwwwww 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 pmHi 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 amThanks 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 amI 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
Reply to this Discussion! Login or Sign Up