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

New Here ,
Jan 16, 2022 Jan 16, 2022

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

TOPICS
Error or problem , Expressions , Scripting

Views

29

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jan 16, 2022 Jan 16, 2022

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines