Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Parenting a keyframe with a mark

  • Parenting a keyframe with a mark

    Posted by Marcelo Cabral on December 18, 2013 at 8:54 pm

    Hi
    May be my question is really stupid but I need to be sure about if posible make a parenting between a layer mark and a keyframe so I move the mark backward or forward and the keyframe move the same in the timeline. Is that posible?

    Thanks

    Marcelo

    Alexander Noelke replied 12 years ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 18, 2013 at 10:18 pm

    If you want to offset the start of your keyframed motion based on a layer marker, you could do something like this:


    if ((numKeys > 0) && (marker.numKeys > 0)){
    t1 = key(1).time;
    t2 = marker.key(1).time;
    valueAtTime(time - (t2-t1));
    }else
    value

  • Alexander Noelke

    May 1, 2014 at 10:47 pm

    Dan, very handy expression

    Is it possible to add to it to make it react to more than one marker?

    for example you have a scaling animation, and you want something to scale up, hold, then scale down. essentially using the 1st marker to begin the scale up, and another to begin the scale down

    that would be really, really, cool

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