Copy link to clipboard
Copied
Class'Comp' has no property or method name
'FrameDuration'
expression disabled
error occurred at line 14.
Comp:'main Comp'
layer:1('placeholder1')
Property:"Position'
how can i fix this!!!
plese help
I wrote this code
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 -time;
}
if (n > 0 && t < 1){
v = velocityAtTime(key(n).time - thisComp.frameDurarion/10);
amp = .60;
freq = 3;
decay = 5.0;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.ext(decay*t);
}else{
value;
}
Copy link to clipboard
Copied
your code has a typo (thisComp.frameDurarion instead of thisComp.frameDuration)