Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Taking value from two Sliders at once

  • Taking value from two Sliders at once

    Posted by Hanna Bune on April 20, 2023 at 2:40 pm

    Hello everyone!

    My question is – is there an expression that could take value from either Slider A, or Slider B, depending whether a Checkbox is on or off?

    About my project: I’m making a character rig that blinks using a Slider, and I want the character to be able to blink normally, as well as wink with one eye. Ideally both eyes would take value from main blinking slider, but upon using the checkbox, they would change to their respective “Left” or “Right” eye slider (similarly as you can lock and unlock Scale property, so it changes both, or only one value). Currently I had an idea to have two Eye compositions, one blinking together, and the other separately, that the Checkbox would turn on and off with Opacity. But I would like to limit the load of the rig as much as I can.

    Attaching an example of sliders layout I had in mind:

    Dan Ebberts
    replied 5 months, 1 week ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 20, 2023 at 4:59 pm

    In general, you could set it up like this:

    cb = effect("Checkbox Control")("Checkbox").value;
    cb ? effect("Slider Control 1")("Slider") : effect("Slider Control 2")("Slider");

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