Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › 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

    Posted by Nicolás Elvira on January 21, 2021 at 11:28 pm

    Hi! 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 replied 5 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    January 22, 2021 at 8:39 am

    Alternatively, 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy