Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Navarro Parker on July 7, 2014 at 5:37 pm

    I’m using this simple expression to link a Text layer’s source text to a slider to display numbers.

    e = effect(“Slider Control”)(“Slider”);
    Math.round(e)

    How can I get it to multiples of 5 (Or any arbitrary number I want)?

    Navarro Parker replied 12 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 7, 2014 at 5:59 pm

    One way:

    e = effect(“Slider Control”)(“Slider”);
    Math.floor(e/5)*5

    Dan

  • Navarro Parker

    July 7, 2014 at 7:56 pm

    So simple. I don’t understand how that works, but I’m glad it does.

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