AE ENHANCERS

Expressions/Scripts/Presets
It is currently Tue Sep 30, 2014 2:54 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: NaN ???
PostPosted: Tue Mar 30, 2010 6:28 am 
Offline

Joined: Tue Apr 03, 2007 10:49 am
Posts: 17
Hello,

Apparently the latest update for AE CS4 have introduced some rather strange effect - NaN value!
The script which worked fine before now crashes. After some debugging I have found the following.

to reproduce:

3D Solid layer,
property Orientation with just one key
keyInSpatialTangent(1) function returns the following

[0, NaN, 0]

Not only I've never seen NaN value in AE before, there is also no way to work with this value either.
Anybody has any idea what is that, other than a bug ?

Thanks M


Top
 Profile  
 
 Post subject: Re: NaN ???
PostPosted: Tue Mar 30, 2010 8:01 am 
Offline

Joined: Sat Jun 26, 2004 10:01 am
Posts: 307
Location: Folsom, CA
Nan is a JavaScript reserved value that indicates that the result is "Not a Number". There are a number of ways you can get this, including trying to divide by zero. I'm not sure why you would get it for your spatial tangent though.

Dan

_________________
http://www.motionscript.com


Top
 Profile  
 
 Post subject: Re: NaN ???
PostPosted: Wed Mar 31, 2010 12:55 am 
Offline

Joined: Tue Apr 03, 2007 10:49 am
Posts: 17
Dan Ebberts wrote:
Nan is a JavaScript reserved value that indicates that the result is "Not a Number". There are a number of ways you can get this, including trying to divide by zero. I'm not sure why you would get it for your spatial tangent though.

Dan


Hello Dan,

Yes, I googled it up and I know the meaning of NaN now. Even more, there is some way of handling NaN in AE.

There is a function isNan(x) which tests if x is NaN.
Also there are some numbers like Number.POSITIVE_INFINITY and Number.NEGATIVE_INFINITY - which are also NaNs (despite their Number.. predicate).

Oh well. If anyone has more information on that - thanks for sharing.

M.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group