Hmmm, that's a nice elegant solution; however, no success. I did however
find a solution though that is along the same lines as not seeing what it
is but figuring out what it's not.

if ( val < 1000000000000 ) {isColor} else {isNAN]

In other words if it's not a color of some intensity it's a NAN.


- Gavin


On Wed, Nov 13, 2013 at 4:57 PM, Ben Dickson <ben.dick...@rsp.com.au> wrote:

> Any comparison to NaN is always false,
> http://stackoverflow.com/q/1565164
> ..so I would guess there is an isnan() function?
>
> If not, a check like "if(val != val)" should only be true for a NaN value
>
> On 14/11/13 10:55, Gavin Greenwalt wrote:
> > Is there a blinkscript constant for NaN values.  I tried using 'nullptr'
> > but it gave me a type mismatch error. Specifically I'm looking to ignore
> > pixels which have NAN values in the processing.
> >
> > Thanks!
> > Gavin
> >
> >
> > _______________________________________________
> > Nuke-dev mailing list
> > Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
> >
>
> --
> ben dickson
> 2D TD | ben.dick...@rsp.com.au
> rising sun pictures | www.rsp.com.au
> _______________________________________________
> Nuke-dev mailing list
> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>
_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to