Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Number counter with small percentage sign.

  • Number counter with small percentage sign.

  • Paul Singleton

    October 14, 2021 at 1:18 pm

    Good Morning

    I have a simple counter expression:

    effect(“Slider Control”)(“Slider”).value.toFixed(0)+”%”

    Which works just fine, however the design requires a smaller percentage sign at the end. In the example here the main digits are 320pt whereas the percentage is 154pt

    If anyone can help with this? It’d be very much appreciated.

  • Kevin Camp

    October 14, 2021 at 6:11 pm

    One way would be to make the % a separate text layer.

    Another way would be to use a text animator to affect the scale of the %. To do that add an animator for scale to the text layer and set the scale to 47.5%. Then add an expression selector to the animator and add this expression to the amount:

    if ( textIndex == textTotal ) { 100 } else { 0 }

    That should make it so the animator affects only the last character in the string, in this case the % sign.

  • Paul Singleton

    October 14, 2021 at 6:22 pm

    Brilliant, that works superbly.

    I also had to do the exact same thing with the tracking for the last character too to get it to look right.

    Thank you.

Viewing 1 - 3 of 3 posts

Log in to reply.

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