-
Pingpong position keyframes with rate change via slider control without time remap
Hi all,
I’m animating two arms going back and forth that vary in speed throughout the composition with duik inverse kinematics. Because I’m animating null objects, I’m not able to precompose them to enable time remapping. I have an expression that I’ve applied to the position transform of the null objects, hoping it would bounce between the two keyframes and allow me to speed the rate up via slider control. It doesn’t, ha. I’m guessing the time aspect of the expression doesn’t apply since I’m working with keyframes? It basically just does a loop out instead of a pingpong between keyframes like I want.
Any help modifying this would be greatly appreciated
loopOut(type = "pingpong", numKeyframes = 0);
rate=effect("Slider Control")("Slider");
p=key(2).time-key(1).time;
linear((time*rate)%p,key(1).time,key(2).time,key(1).value,key(2).value)Thanks,
George