-
Control opacity with two layers
Hey guys, I have a question. I’m creating a template in AE and is it possible to control the opacity of one layer with two different controls. I created one “menu control” and one “checkbox control” to control opacity.
Is this possible? I wrote an expression myself and is not working. If this is possible, what did I missed in expression?
var menu = comp("MOGRT").layer("MOGRT Controls").effect("Position")("Menu");
var opa = comp("MOGRT").layer("MOGRT Controls").effect("StrokeAnimation")("Checkbox");if (menu == 1 || opa == 1)
{100}
else if (menu == 1 || opa == 0)
{0}
else
{0}Thanks for the help.
Saso
