-
Expression “works” but not as intended.
So I’m working on a rig for work and I’d like a layer to only appear (via opacity) when certain conditions are met and not appear when other conditions are met.
Basically, if a layer moves past a certain point, it turns on. If a certain switch is checked, it turns on, and if another different switch is checked, it turns off.
I’ve done similar things with other layers and it works just fine, but I think here I have too many conditions and AE is getting confused.
Any suggestions? Thanks =D
x = thisComp.layer("OPTIONS").effect("Skelotor Mode")("Checkbox");
b = thisComp.layer("Body Turn").transform.xPosition;
f = thisComp.layer("C_L hand").effect("Force in Back L")("Checkbox");
v = value;if (b < -10) v =100;
else if (x == 0) v = 100;
else if (f ==1) v = 100;else v = 0;