Forums › Adobe After Effects Expressions › Control Fx on off (or opacity) of several layers from slider control or checkbox
Control Fx on off (or opacity) of several layers from slider control or checkbox
Nicolás Elvira
January 21, 2021 at 11:28 pmHi! Im new here and I’m trying to make a template for myself and my team, and we have different color pallettes for different uses. I would like to control this different 4 color gradients (in each layer, backgorunds and several shape layers) from one layer, with a slider control or different checkbox controllers.
I was trying with something like this
– if (thisComp.layer(“GRADIENT”).effect(“Corporate”)(“Checkbox”) > 0) {100} else {0}. on the fx opacity expression. It works with one but it´ starts to fail once I add another checkbox controller for the second gradient.
or I would like to assign a specific range in the slider control to select one 4 Color Gradient (from its opacity) or another, but I didnt find the right expression…
slider = thisComp.layer(“GRADIENT”).effect(“Gradients”)(“Slider”);
if (slider < 0 || slider > 1) 100 else 0
Any ideas?
Thanks very much in advance
Nico E.
Filip Vandueren
January 22, 2021 at 8:39 amAlternatively, You could add the different looks as keyframes in just 1 effect.
And then use expressions on those keyframes to choose the value of key(n)
with n being controlled by a slider or pop-up selector
Log in to reply.