Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Useful progress bar expression with percentage (%)

  • Useful progress bar expression with percentage (%)

    Posted by Filip Stillerska on July 3, 2018 at 4:52 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 + "%"

    Filip Stillerska replied 8 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy