Skip to main content
Participant
January 17, 2022
Question

Class'Comp' has no property or method name 'FrameDuration' expression disabled

  • January 17, 2022
  • 1 reply
  • 179 views

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;
}

This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
Community Expert
January 17, 2022

your code has a typo (thisComp.frameDurarion instead of thisComp.frameDuration)

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects