ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Useful progress bar expression with percentage (%)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Filip Stillerska
Useful progress bar expression with percentage (%)
on Jul 3, 2018 at 4:52:01 pm

Here's a simple but useful expression when you want to link a Source Text to a Slider Control with two decimals and a percent sign after the main numbers. This is very useful when you, for example, want to create the counting numbers of a progress bar. Please note that you'll need to replace the slider reference-part (X) with your own slider reference. You can also change the number (amount) of decimals by changing the Y value.

Here's a quickly-created ugly example:


X = thisComp.layer("Controls").effect("Slider Control")("Slider");
Y = 100;
Math.round(X*Y)/Y + "%"


Return to posts index

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