Hello Nuke,

I need to do something extremely simple, and am running into difficulty. I
just want to create an alpha channel from an rgb, where the alpha is 1
where the rgb exactly matches (within some tiny precision) a target color,
and the alpha is 0 where the rgb is other.

I tried doing this with an Expression node, and it works, but sometimes the
resulting alpha channel is offset in space (but not always). The expression
that I'm using is:

(r==targetColor.r && g==targetColor.g && b==targetColor.b) ? 1 : 0

where targetColor is a user variable.

Is there some easier way to do this? This seems like a pretty basic
color-key operation, I feel like I'm solving it the hard way.

Chris

-- 
I think this situation absolutely requires that a really futile and stupid
gesture be done on somebody's part. And we're just the guys to do it.
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to