Skip to content


RGTV Ep. 26: Score! Working with Numeric Text

By Aharon Rabinowitz
August 3, 2009

In this episode of Red Giant TV, Aharon Rabinowitz gives you some cool tips for working with numeric text, for things like video game scores and other digital readouts. No 3rd Party Plug-ins are used in this tutorial – Just straight After Effects.

This tutorial uses 2 powerful expressions. Here they are:

1. Round to the nearest whole number:

s = thisComp.layer(“Null 1″).effect(“Slider Control”)(“Slider”);
Math.round(s)

2. Layer marker triggers addition to current value:

s = effect(“Slider Control”)(“Slider”);
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n–;
}
}
s + n

10 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. ESoN22 said

    wow i like it :)
    nice tut….
    great job Aharon…. :) :)

    best wishes from Slovakia :)

  2. Vinny said

    Very nice tutorial, might be useful sometime!!

  3. 42… Ha ha! Thanks for those excellent expressions. I use that effect all the time and always have to fight with it.

    Thanks again!

  4. Oliver said

    Great Tut, the script was hilarious.

  5. Adam said

    Slick! As always I’m learning new skills from you :)

  6. kiranukun said

    Sorry AHARON RABINOWITZ. actually I’m a big fan of ANDREW KRAMER. I’m on her attention when I reply you and post like Nice! Thanks Andrew. but AHARON your Awesome…..

  7. hehee.. i love this tuts. Sir Aharon. and love ur bad hair day….hehee…

    your tuts. are really detail and easy to learn

  8. Slow Noobie said

    First I would like to says these helped a lot. Thank you!!!

    However a tutorial I would like to see is text on walls. So if a cam is moving and in a intro you have text on the wall. People going in front or just in open space.

  9. Ciprian said

    small error at
    n–;
    }

    should be
    n–-;
    }
    </code

  10. counter culture said

    i cant get it to wotk

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.