ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Make a Slider control display a character on value 0

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Laurits Rytter Hansen
Make a Slider control display a character on value 0
on Aug 3, 2018 at 9:05:50 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.


Return to posts index

Dan Ebberts
Re: Make a Slider control display a character on value 0
on Aug 3, 2018 at 4:27:30 pm

Something like this maybe:

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


Dan



Return to posts index

Laurits Rytter Hansen
Re: Make a Slider control display a character on value 0
on Aug 3, 2018 at 4:43:37 pm

that works great. so simply. thank you

- Laurits


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]