Copy link to clipboard
Copied
How do I resolve this error?
Copy link to clipboard
Copied
According to the error message, there are at least 133 lines in your expression. We would have to see the entire thing to figure out where the syntax error is. The only thing that I can tell is that one of your operators is not returning a numeric value.
Copy link to clipboard
Copied
That's the crazy thing, there are not 133 lines in my expression. The image shows the whole expression.
Here it is below:
delay = .1;
tDelay = delay*textIndex;
n = 0;
if (numKeys > 0){
n = nearestKey(time-tDelay).index;
if (key(n).time > time) n--;
}
if (n == 0){
t = 0;
}else{
t = time - key(n).time - tDelay;
}
if (n > 0){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
amp = .05;
freq = .5;
decay = 5.0;
valueAtTime(time-tDelay) + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}
Copy link to clipboard
Copied
Also, this expression works a good deal of the time. I can preview it several times in a row and then all of the sudden it will break.
Copy link to clipboard
Copied
I have the same problem! Was this resolved?
Copy link to clipboard
Copied
I have the same issue, and it's driving me insane. It doesn't seem to matter what the code is. I've deleted everything down to:
x = 100;
y = 100;
[x,y]
and it still gives tells me that there is an error on line 1: couldn't turn result into a numeric value.
I've commented out line 1, leaving
/*comment*/
x = 100;
y = 100;
[x,y]
It still tells me the same thing. There's an error on line 1: couldn't turn result into a numeric value.