0

I have following expression

Math.round(effect("Slider Control")("Slider"))

on a text layer to control the text with the slider and be able to make a countdown. How can I make this in "tenner" steps, so when I add two keyframes with "300" and "0", it should countdown, but in "tenner" steps, so 300, 290, 280

Thanks..

1
  • Hi. Video editing questions are off-topic here. Sorry about that. Might be better to ask this on Video Production Stack Exchange, or flag your own question and ask the mods to migrate it for you.
    – Billy Kerr
    Jun 27, 2021 at 12:57

1 Answer 1

1

You divide by 10, round the result, then multiply by 10.

So the formula may be:

Math.ceil(effect("Slider Control")("Slider") / 10) * 10

You may prefer to substitute Math.ceil() with Math.floor() or Math.round() for different timings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.