Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesTrainingCreative Cloud DebateFAQ

How to get a slider value to stay to 2 decimal places in a text layer?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Dave MartinHow to get a slider value to stay to 2 decimal places in a text layer?
by 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 :)


Return to posts index
Reply   Like  

Dan EbbertsRe: How to get a slider value to stay to 2 decimal places in a text layer?
by on Oct 8, 2012 at 3:10:53 pm

Like this:

thisComp.layer("other layer").effect("Slider Control")("Slider").value.toFixed(2)

Dan



Return to posts index
Reply   Like  

Dave MartinRe: How to get a slider value to stay to 2 decimal places in a text layer?
by on Oct 17, 2012 at 4:55:38 pm

Sorry for not getting back sooner Dan...

But, Thanks... Just what I needed.


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]