-
same AE expression on two properties, working erratically (to me!)
Hello experts!
This is what I have currently: https://reels.creativecow.net/film/4circles
I would like my four circles to sort of push each other away upon appearing.
To this end, I’ve used the expression below (inertial bounce), which I’ve used before without any problems, to both the SIZE and POSITION properties.
———————
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n–;
}
}
if (n == 0){
t = 0;
}else{
t = time – key(n).time;
}if (n > 0){
v = velocityAtTime(key(n).time – thisComp.frameDuration/10);
amp = .03;
freq = 4.0;
decay = 5;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}
————————–This is what my layers look like, with the keyframes:
BUT: it only seems to work on the last sequence (when the last circle comes in), and only on the SIZE property, which rather puzzles me…
What am I doing wrong?
