Activity › Forums › Adobe After Effects Expressions › Triggering specific keyframes animations with marker comment
-
Triggering specific keyframes animations with marker comment
Daniel Futerman replied 10 years, 5 months ago 3 Members · 16 Replies
-
Dan Ebberts
November 21, 2015 at 12:12 amAh, maybe like this then:
tm = marker.key(1).time;
t1 = key(1).time;
t2 = key(2).time;
t = time*(t2-t1)/(tm-t1);
valueAtTime(t)Dan
-
Daniel Futerman
November 21, 2015 at 12:20 amThank you so much for your amazing help Dan! I have to head out of the office for a few hours but can’t wait to get back and try this out!
After Effects Template & Photoshop Tutorials:
https://www.amigo-productions.com -
Daniel Futerman
November 21, 2015 at 9:48 amBrilliant!!! Exactly what I needed!!
Thank you so very much Dan, your help has been amazing.
After Effects Template & Photoshop Tutorials:
https://www.amigo-productions.com -
Daniel Futerman
November 22, 2015 at 1:40 pmOk this is embarrassing, but I need help to refine the latest expression.
The expression works only if the layer itself starts at 00:00 seconds. Anything else, the keyframe animation begins earlier in time that the layer itself, as in the following example:
I tried modifying the expression for the past few hours but simply couldn’t get my head around it 🙁
After Effects Template & Photoshop Tutorials:
https://www.amigo-productions.com -
Dan Ebberts
November 22, 2015 at 3:52 pmTry it this way:
tm = marker.key(1).time;
t1 = key(1).time;
t2 = key(2).time;
t = t1 + (time-t1)*(t2-t1)/(tm-t1);
valueAtTime(t)Dan
-
Daniel Futerman
November 22, 2015 at 5:42 pmYES!!! 😀 Perfect Dan! (And this time I’m 100% sure about it) 😉
Thank you very very much for your help once again.
After Effects Template & Photoshop Tutorials:
https://www.amigo-productions.com
Reply to this Discussion! Login or Sign Up
