Activity › Forums › Adobe After Effects Expressions › Linking multiple keyframes to layer markers
-
Linking multiple keyframes to layer markers
Posted by Ahmed Ashraf on December 5, 2016 at 12:46 amMark Borgions replied 9 years, 4 months ago 4 Members · 3 Replies -
3 Replies
-
Gonzalo Tórtola
December 15, 2016 at 4:11 amIm in the same problem as you… I’ve just posted a similar issue, it’s really anoying find nobody to help us 🙁
-
Miguel De mendoza
December 19, 2016 at 2:59 pmYou can do it via script, but maybe it will be complicated. One aproach you can follow to acomplish something similar is this Dan Ebberts expression.
-
Mark Borgions
December 19, 2016 at 7:24 pmI’m not the most efficient expressions writer, but I might be able to help.
There’s two things you need: the animation at each marker.
First, determine the trigger point :
myTrig = thisComp.layer(“layername”).marker.key(“marker name”).time ;
Then the interpolation :
linear(time, myTrig, myTrig+0.2, value1, value2)
Where you replace the values to the ones relevant to youThen, and this is where better coders might have a better solution, you check which one needs to be triggered by putting them in if else if statements
So something like what is below.Hope this helps. Might become complicated, but if works for me.
Also, I tend to put the duration in a slider control, that way I can adjust it there once for the whole thing. Like
myDur = pickwhip slider control effect
Thus my interpolation becomes
linear(time, myTrig, myTrig + myDur, value1, value2)if (time < thisComp.layer("layername").marker.key("second marker name").time)
myTrig = thisComp.layer("layername").marker.key("first marker name").time ;
linear(time, myTrig, myTrig+0.2, value1, value2) ;
else if (time < thisComp.layer("layername").marker.key("third marker name").time)
...
end if
Reply to this Discussion! Login or Sign Up
