-
Turn on/off layer opacity with specific color value
Hi,
The layer opacity is linked to a Color Control.
I want to turn on to 100 the opacity when I get the color value: [0.973,0.831,0.055,1]
and if I get other color value I want to turn off the opacity to 0.
This is what I tried but didn’t work:
yellow_color = [0.973,0.831,0.055,1];
if (comp(“_FF_Dark_01”).layer(“CHANGE_COLOR_HERE”).effect(“Color Control”)(“Color”) == yellow_color) {100} else {0}
THANKS