Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Dan’s counter expression and alignment.

  • Dan’s counter expression and alignment.

    Posted by Robert Paynter on January 15, 2008 at 10:44 pm

    I’m using a Dan Ebberts expression to create a counter.
    I created a Slider and added tis expression to the Source Text feild.

    val = effect(“Slider Control”)(“Slider”);
    numDec = 0; // digits to right of decimal
    numDigit = 2; // digits to left of decimal
    if (val < 0) sign = "-" else sign = ""; s = Math.abs(val).toFixed(numDec); while (s.length < numDigit + numDec + 1) s = "0" + s; sign + s The paragraph is aligned to the right. As the number roll the kerning moves the letters. Is there a way to keep each number in a set position?

    Riccardo Sinti replied 18 years, 4 months ago 3 Members · 3 Replies
  • 3 Replies

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