-
Help for expression that lets a slider control counts…
Hi dear friends,
Once again I find myself in a difficult position. The thing this time is that I need an expression that needs to do some math for a slider.
I got 1 slider control witch controlles the zoom of a camera. It goes between 4 and 5 (in witch 5 makes the target full screen and 4 zooms out a little bit).
And I got another slider control witch is actually needed to count the times the first went from 5 to 4 and counterwise.
So SC1 starts at 5 and SC2 starts at 1. If SC1 goes to 4, SC2 needs to go to 2. And if SC1 goes back to 5, SC2 needs to stay at 2. But if SC1 goes back to 4, SC2 needs to go to 2.. etc.
Here something I tried:
hoogte = thisComp.layer("height").effect("Slider Control")("Slider");
yes = effect("SureTarget")("Slider").(value +1);
no = effect("SureTarget")("Slider");if (hoogte = 5){
yes}if (hoogte = 4){
no}But that does not the thing I want.
Thanks for any help.