-
Slider Value Ratio
Hello friends,
I have in my setup two value sliders. One for the width and one for the height.
With a checkbox I want to lock the ratio of the sliders.
Then I just want to use the width slider to scale the height in the same ratio.
I thing is easy but I don’t get it 😤
var ratio = effect(‘Slider Width’)(‘slider’)/effect(‘Slider Height’)(‘slider’);
effect(‘Checkbox Control’)(‘Checkbox’)==true ? effect(‘Slider Width’)(‘slider’)*ratio : value;