您的位置 > 知道问题页
amorti = effect("Damping")(1);
freq = effect("Elasticity")(1);
rebond = effect("Bounce")(1);
if (numKeys > 1 && freq != 0 ){
if (nearestKey(time).index == 1) { value }
else {
if (length(velocity) == 0) {
tempsClefProx = nearestKey(time).time;
if ( tempsClefProx <= time ) {tempsDebut = tempsClefProx }
else { tempsDebut =key(nearestKey(time).index-1).time }
temps = time - tempsDebut;
spring =velocityAtTime(tempsDebut-thisComp.frameDuration) * ( .15/freq * Math.sin(freq* temps * 2 * Math.PI) / Math.exp( temps * amorti ) );
if (rebond == 0) valueAtTime(tempsDebut) +spring;
if (rebond == 1 && valueAtTime(tempsDebut-thisComp.frameDuration)> valueAtTime(tempsDebut))valueAtTime(tempsDebut) + Math.abs(spring);
if (rebond == 1 && valueAtTime(tempsDebut-thisComp.frameDuration) < valueAtTime(tempsDebut))valueAtTime(tempsDebut) - Math.abs(spring);
}
else { value }
}
}
else { value }
能够讲解一下一下这个表达式的具体含义吗 ?
最近在研究一个模板 里面有一些问题希望能得到解答 谢谢