ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

# AE Expressions Invalid Numeric Result Problem

FAQ   •   VIEW ALL
 AE Expressions Invalid Numeric Result Problem on Feb 13, 2014 at 4:26:14 pm

OK I need help ... I'm using Dan Ebberts' Expression below, working in AE CS6.

maxDev = 13; // max deviation in pixels
spd = 30; //speed of oscillation
decay = 1.0; //how fast it slows down

t = time - inPoint;
x = scale[0] + maxDev*Math.sin(spd*t)/Math.exp(decay*t);
y = scale[0]*scale[1]/x;
[x,y]

AE gives me the following:

After Effects warning: invalid numeric result (divide by zero?)
Expression disabled.

Error occurred at line 0.

Please chime in. Urgent, thanks!

 Return to posts index

 Re: AE Expressions Invalid Numeric Result Problemon Feb 13, 2014 at 5:58:25 pm

I'm guessing that your scale x value is <=0 or that the variable x is evaluating to 0.

Declan Smith
http://www.madpanic.tv
After Effects CS6/ FCS3 / Canon XLH1 / Canon 7D / Reason / Cubase

"it's either binary or it's not"

 Return to posts index

 Re: AE Expressions Invalid Numeric Result Problemon Feb 13, 2014 at 6:08:43 pm

I'm not well versed in expressions so what do I do to correct it?

 Return to posts index

 Re: AE Expressions Invalid Numeric Result Problemon Feb 14, 2014 at 9:00:14 pmLast Edited By Ridley Walker on Feb 14, 2014 at 10:21:02 pm

There is *nothing* wrong with the script. It works. I've just copied and pasted the script in your first post to both position and scale.

To what and how are you trying to apply the scipt?

See: 7129_workingscript.aep.zip

 Return to posts index

 Re: AE Expressions Invalid Numeric Result Problemon Feb 14, 2014 at 3:18:42 pm

[Tony Hearst] "Error occurred at line 0.Please chime in. Urgent, thanks!"

There's nothing wrong with the expression as you wrote it. It should be applied to a property with 2 dimensions like position or scale.

Line 0 refers to the first line of the expression. Lines in an expression are counted like an array, so 0 is the index of the first item.

 Return to posts index

© 2018 CreativeCOW.net All Rights Reserved
[TOP]