Highlighted

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

Community Beginner ,
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

1.3K

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

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

Community Beginner ,
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

1.3K

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
Feb 05, 2019 0
Adobe Community Professional ,
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.

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
Reply
Loading...
Feb 05, 2019 0
Community Beginner ,
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;

}

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
Reply
Loading...
Feb 05, 2019 0
Community Beginner ,
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.

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
Reply
Loading...
Feb 05, 2019 0
New Here ,
May 10, 2020

Copy link to clipboard

Copied

I have the same problem! Was this resolved? 

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
Reply
Loading...
May 10, 2020 0