• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Expression Selector Error: Couldn't Turn Result into Numeric Value

Community Beginner ,
Feb 05, 2019 Feb 05, 2019

Copy link to clipboard

Copied

How do I resolve this error?

Screen Shot 2019-02-05 at 9.40.07 AM.png

Views

3.2K

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
Community Expert ,
Feb 05, 2019 Feb 05, 2019

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.

Votes

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
Community Beginner ,
Feb 05, 2019 Feb 05, 2019

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;

}

Votes

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
Community Beginner ,
Feb 05, 2019 Feb 05, 2019

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.

Votes

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
New Here ,
May 10, 2020 May 10, 2020

Copy link to clipboard

Copied

I have the same problem! Was this resolved? 

Votes

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
Explorer ,
Jan 21, 2021 Jan 21, 2021

Copy link to clipboard

Copied

LATEST

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.

 

 

 

Votes

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