Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Shifting second set of keyframes with marker

  • Shifting second set of keyframes with marker

    Posted by Billy Woodward on November 6, 2017 at 9:41 pm

    Hi there!
    AE expressions have been something I’ve loved tinkering with but have, self admittedly, still had a hard time grasping at points. I’ve recently been trying to shift the second set of keyframes in an animation by tying them to a marker. I’m creating a graphics kit with a lower third that animates in – rests for a few beats – and then animates out. My hope is that I can set up this marker so that when it’s used the marker can simply be shifted to fit various timing needs.

    I’ve included an expression I’ve been using for attributes that have no keyframes coming before it.

    Any help would be GREATLY appreciated!
    Thanks,
    Billy

    **Bonus Question**
    Some of the ‘exit’ animations are happening at slightly offset times (2-3 frames). Without dealing with pre-comping and then time-remapping – is there a way to have a marker have an offset built in?

    L= thisComp.layer("CompControls");
    m = L.marker.key("Out");
    if (time < m.time){
    valueAtTime(0);
    }else{
    t = time - m.time;
    valueAtTime(key(1).time + t);
    }

    Billy Woodward replied 8 years, 6 months ago 3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    November 6, 2017 at 10:46 pm

    Soemthing like this maybe:


    L= thisComp.layer("CompControls");
    m = L.marker.key("Out");

    if (time < key(2).time){
    t = time;
    }else if (time < m.time){
    t = linear(time,key(2).time,m.time,key(2).time,key(3).time);
    }else{
    t = key(3).time + (time - m.time);
    }
    valueAtTime(t)

    Dan

  • Joe Clay

    November 6, 2017 at 10:58 pm

    Might also help: https://workbench.tv/tutorials/2017-08-11_Semi-AutomaticAnimation/

    I borrowed a ton from Dan but approached things differently.

    Joe Clay
    Workbench.tv

  • Billy Woodward

    November 6, 2017 at 11:56 pm

    Dan – you’re a legend. Works like a charm – much obliged!!

  • Billy Woodward

    November 6, 2017 at 11:57 pm

    Amazing – thanks Joe, I’ll dive in.

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