Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Make a Slider control display a character on value 0

  • Make a Slider control display a character on value 0

    Posted by Laurits Rytter hansen on August 3, 2018 at 9:05 am

    Hi
    I am making a scoreboard where I’m controlling the score with a slider control linked to a text source. everything so far works fine but I would like the slider to display the character “E” when it hits 0 instead of 0. is this possible, and if so how do I write it. thanks in advance.

    Laurits Rytter hansen replied 8 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 3, 2018 at 4:27 pm

    Something like this maybe:

    s = effect(“Slider Control”)(“Slider”).value;
    if (s == 0) “E” else s

    Dan

  • Laurits Rytter hansen

    August 3, 2018 at 4:43 pm

    that works great. so simply. thank you

    – Laurits

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