-
marker triggers leader animation
so…
I have a “leader” null with an animated slider on it
And other layers which I would like to mimic that slider keyframes when timeline reach a marker..
I tried to mess a bit with the markers but obviously it doesn’t work (the slider controls their A to B position):
It should go on each layer’s position:
slider = thisComp.layer("lead").effect("go")("Slider");
init=effect("init")("3D Point");
end=effect("end")("3D Point");n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time) n--;
}
if (n == 0){
value;
} else {
t = time - marker.key(n).time;
a=linear(t*slider,0,100,init,end);
a}
The animation goes from the marker, but doesn’t mimic the leader keyframes or animation curves…
Any advice is welcome!
Sorry, there were no replies found.