Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Control “toFixed(n)” with a Slider

  • Control “toFixed(n)” with a Slider

    Posted by Eden Exposito on August 5, 2008 at 9:58 am

    HI

    Im showing decimal numbers, but i want add a controller for control the number of decimals that these numbers can show.

    If i add an expression controller to “toFixed(n)” show an error like, out of range, because these sliders are with decimals.

    Some solution?

    Thanks!

    Jelte Smith replied 17 years, 8 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 5, 2008 at 1:16 pm

    Here’s an example:

    val = 12345.6789;
    slider = effect(“Slider Control”)(“Slider”);
    val.toFixed(Math.round(slider));

    Dan

  • Jelte Smith

    September 14, 2008 at 11:01 am

    Hmm.. I haven’t an idea maybe search on the internet

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