hello again!! so i tried to work something on my own,
so i added ‘+value’ to the end of the equation so i can use the key-frames to animate the child-layer separately…
and it kinda worked! but sadly with no over-shot if animated with key-frames..
p = thisComp.layer("Main Squar").transform.rotaion;
tDelay = time -0.04;
val = p.valueAtTime(tDelay);
freq = 3;
decay = 5;
n = 0;
if (p.numKeys > 0){
n = p.nearestKey(tDelay).index;
if (p.key(n).time > tDelay) n--;
}
if (n > 0){
t = tDelay - p.key(n).time;
amp = p.velocityAtTime(p.key(n).time - .001);
w = freq*Math.PI*2;
val + amp*(Math.sin(t*w)/Math.exp(decay*t)/w)+value;
}else
val
Thanks in advance for all your help.