Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Link checkboxes to Angle or Slider Control

  • Link checkboxes to Angle or Slider Control

    Posted by Rebeca Metta on March 24, 2020 at 7:00 pm

    I am creating a template and need to use 4 different specific colors/gradients I created wit the 4-color gradient effect. I would like for it to work like a radio button, so if you turn one on, the others are off.

    So far, I have attached the opacity of each gradient to a checkbox which toggles them on and off. But how do I go about joining all 4 checkboxes in a slider control or angle control? So that the client can just slide it and get only 4 options.

    Any ideas?

    Thank you!

    Andrei Popa replied 6 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    March 26, 2020 at 7:48 am

    You could se this expressions to checkboxes, with different idx for each. Each checkbox will toggle on when the slider and the idx are equal.

    var idx = 1;
    var slider = thisLayer("Effects")("Slider Control")("Slider").value;
    slider==idx ? 1 : 0

    Andrei
    My Envato portfolio.

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