ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Linking multiple keyframes to layer markers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ahmed Ashraf
Linking multiple keyframes to layer markers
on Dec 5, 2016 at 12:46:47 am

Is there anyway to link those keyframes to markers?


Return to posts index

Gonzalo Tórtola
Re: Linking multiple keyframes to layer markers
on Dec 15, 2016 at 4:11:42 am

Im in the same problem as you... I've just posted a similar issue, it's really anoying find nobody to help us :(


Return to posts index

Miguel de Mendoza
Re: Linking multiple keyframes to layer markers
on Dec 19, 2016 at 2:59:25 pm

You 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.


Return to posts index


Mark Borgions
Re: Linking multiple keyframes to layer markers
on Dec 19, 2016 at 7:24:00 pm

I'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 you

Then, 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 &lt; 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 &lt; thisComp.layer("layername").marker.key("third marker name").time)
...
end if


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]