This is what i thin i need to do, but its not working for me.
color1 = [0.6667, 0.7098, 0.1137, 1];
color2 = [0.6078, 0.0392, 0.3176, 1];
color3 = [0.3137, 0.6392, 0.7294, 1];
n = thisComp.layer(“Controller”).effect(“BG Colour”)(“Color”);
if (n==color1) {
color2
} else if (n==color2) {
color1
} else if (n==color3) {
color2
} else {
0
}
Thanks
Chris