FORUMS: list search recent posts

How do I add a + symbol in front of a percentage count increase?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jason Boekeloo
How do I add a + symbol in front of a percentage count increase?
on Sep 9, 2016 at 7:14:36 pm

Hey guys,

I want to add a plus symbol in front of the increasing percentage number but I'm not having any luck. Here is the This expression is working great for the percentage attached to a slider:

math.round(this.Comp.layer(“Slider”).effect(“Slider Control”)(“Slider”))+”%”

Any ideas? Thanks.

math.round(this.Comp.layer(“Slider”).effect(“Slider Control”)(“Slider”))+”%”


Return to posts index

Dan Ebberts
Re: How do I add a + symbol in front of a percentage count increase?
on Sep 9, 2016 at 10:09:43 pm

Like this?

"+"+Math.round(thisComp.layer("Slider").effect("Slider Control")("Slider"))+"%"

Dan



Return to posts index

Jason Boekeloo
Re: How do I add a + symbol in front of a percentage count increase?
on Sep 9, 2016 at 11:38:14 pm

Thanks for the reply, Dan, that was my guess as well. I will try it again unless I missed something but I don't think it worked. Any other thoughts?


Return to posts index


Dan Ebberts
Re: How do I add a + symbol in front of a percentage count increase?
on Sep 10, 2016 at 12:54:42 am

>I don't think it worked

Please explain. Did it not do what you wanted? Did you get an error message?

Dan



Return to posts index

Jason Boekeloo
Re: How do I add a + symbol in front of a percentage count increase?
on Sep 10, 2016 at 6:45:10 pm

Well now I feel a little silly. The last time I tried it I must have broke something else in the expressions accidentally because I tried again and it works! Problem solved thanks for the help.


Return to posts index

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