-
Set transparency if color is white
Hi!
Coukd someone please tell me why this expression isn’t working?
I have a Fill Effect on a Solid that is controlled by a Color Control in another Comp.
I want the transparency of the Solid to be 50% only if the Color Control is set to 100% white.
I get 100% transparency even if it’s white.
And why is there four arrays? Isn’t it RGB?
Thanks!
if (comp("COLOR").layer("Null 2").effect("COLOR 2")("Color") == [255,255,255,1])
transp = 50;else
transp = 100;transp