Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Four digit counter

  • Dan Ebberts

    April 28, 2010 at 2:40 pm

    Assuming that variable “n” in a source text expression has your value, adding this to your expression should do it:

    s = “” + Math.round(clamp(n,0,9999));
    while (s.length < 4) s = "0" + s; s Dan

  • Tom De groen

    April 28, 2010 at 7:53 pm

    My man – that’s tops. Long Live the Cow!

  • Hannes Paulsson

    April 30, 2010 at 10:43 am

    You could use the numbers effect if you want to. Just select “Number [Leading Zeros] in the “type” option.

  • Tom De groen

    May 3, 2010 at 6:08 am

    Yeah I tried that but it added 5 ‘0’s when I only wanted 4… is there a simple way to adjust this? I had a look but couldn’t find a solution. Would that involve adding some action script as well?

    It’d be good to know as a back pocket fix.

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