-
assistance explaining expression
Hi folks.
SPACEMAN hgas inherited an expression although uses it
and understands what it does, SPACEMAN does not understand
the logic.
Below, is the expression. SPACEMAN would be extremely grateful if someon could
explain it.SPACEMAN
🙂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 = thisComp.layer("+sliders+").effect("amp")("Slider");
freq = thisComp.layer("+sliders+").effect("freq")("Slider");
decay = thisComp.layer("+sliders+").effect("decay")("Slider");
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}
else{ value; }
SPACEMAN needs spaceship parts, not expressions…