展开全部
应该是电脑问题 导致Math.min(decay*t)出错
用这个就不报错了
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/15);
amp = .04;
freq = 2;
decay =5;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(Math.min(decay*t,400));
}else{
value;
}
用这个就不报错了
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/15);
amp = .04;
freq = 2;
decay =5;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(Math.min(decay*t,400));
}else{
value;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询