-
change colour fill based on opacity
Hi everybody!
I’m a relative expressions newbie so please excuse my ignorance with this…
I want to have the colour of a layer change based on the opacity of another layer. I want there to be 4 colours so I used an if else expression… can someone please tell me where I’m going wrong… I’d really appreciate some help!
color=effect("Fill")("Color")
num=thisComp.layer("Colour Control Icing").effect("Icing 4")("Opacity");
varWhite=thisComp.layer("Colour Control Icing").effect("Icing 1")("Color");
varBrown=thisComp.layer("Colour Control Icing").effect("Icing 2")("Color");
varPink=thisComp.layer("Colour Control Icing").effect("Icing 3")("Color");
varBlue=thisComp.layer("Colour Control Icing").effect("Icing 4")("Color");if (num<25){varWhite};
if (num>25 && num<50){varBrown};
if (num<75 && num> 50){varPink};
else (num>75}{varBlue};
color;