| How to get a slider value to stay to 2 decimal places in a text layer?
• | | | |
 | How to get a slider value to stay to 2 decimal places in a text layer?
by Dave Martin on Oct 8, 2012 at 6:33:29 am |
I'm using sliders to input values for 'Source text' in text layers.
I want to have the text display a value to 2 demimal places: I.E. "1.20" and NOT "1.2"
Any ideas guys?
Thanx :)
| | | | |
• | | | |  | Re: How to get a slider value to stay to 2 decimal places in a text layer? by Dan Ebberts on Oct 8, 2012 at 3:10:53 pm |
Like this:
thisComp.layer("other layer").effect("Slider Control")("Slider").value.toFixed(2)
Dan
| | | | |
• | | | |  | Re: How to get a slider value to stay to 2 decimal places in a text layer? by Dave Martin on Oct 17, 2012 at 4:55:38 pm |
Sorry for not getting back sooner Dan...
But, Thanks... Just what I needed.
| | | | |
| |
|