Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking multiple keyframes to layer markers

  • Gonzalo Tórtola

    December 15, 2016 at 4:11 am

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

  • Mark Borgions

    December 19, 2016 at 7:24 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 < 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

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