ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Link checkboxes to Angle or Slider Control

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rebeca Metta
Link checkboxes to Angle or Slider Control
on Mar 24, 2020 at 7:00:02 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!

Return to posts index

Andrei Popa
Re: Link checkboxes to Angle or Slider Control
on Mar 26, 2020 at 7:48:30 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

My Envato portfolio.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 All Rights Reserved