Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Multiple slider controls on a single text layer

  • Multiple slider controls on a single text layer

    Posted by John Burgess on April 5, 2021 at 12:47 pm

    Hi, I am trying to add two slider controls to a single text layer to have independent control over two values. e.g

    100,200

    (100 slider 1)
    (200 slider 2)

    I need a comma separating the two values with 0 decimal places

    Many thanks

    John Burgess replied 2 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 5, 2021 at 4:25 pm

    Like this?

    s1 = effect("Slider Control")("Slider").value;

    s2 = effect("Slider Control 2")("Slider").value;

    s1.toFixed(0) + "," + s2.toFixed(0)

  • John Burgess

    April 7, 2021 at 4:03 pm

    Worked perfectly, thanks so much Dan

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