ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Shifting second set of keyframes with marker

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
billy woodward
Shifting second set of keyframes with marker
on Nov 6, 2017 at 9:41:51 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 &lt; m.time){
valueAtTime(0);
}else{
t = time - m.time;
valueAtTime(key(1).time + t);
}


Return to posts index

Dan Ebberts
Re: Shifting second set of keyframes with marker
on Nov 6, 2017 at 10:46:15 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



Return to posts index

Joe Clay
Re: Shifting second set of keyframes with marker
on Nov 6, 2017 at 10:58:43 pm

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

I borrowed a ton from Dan but approached things differently.

Joe Clay
Workbench.tv


Return to posts index


billy woodward
Re: Shifting second set of keyframes with marker
on Nov 6, 2017 at 11:57:29 pm

Amazing - thanks Joe, I'll dive in.



Return to posts index

billy woodward
Re: Shifting second set of keyframes with marker
on Nov 6, 2017 at 11:56:49 pm

Dan - you're a legend. Works like a charm - much obliged!!



Return to posts index

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