Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects animating a number

  • animating a number

    Posted by Simon Jones on August 4, 2010 at 11:52 am

    Hi all

    I have a problem I need to create an animated texture that is applied to a 3d model. The texture has to start from 1 up to 180 but it has to stay on each number for 9 frames.

    As it stands i’m creating a layer with 9 frames for each number! It’s painful and the number may increase from 180 to 400!

    Is there any other way for me to do this, taking into account i know very little about scripting but i’m more than willing to learn. Can anyone help/Point me in the right direction?

    Thanks in advance

    Simon Jones replied 15 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Walter Soyka

    August 4, 2010 at 4:31 pm

    [Simon Jones] “I have a problem I need to create an animated texture that is applied to a 3d model. The texture has to start from 1 up to 180 but it has to stay on each number for 9 frames… Is there any other way for me to do this, taking into account i know very little about scripting but i’m more than willing to learn. Can anyone help/Point me in the right direction?”

    You don’t need scripting, but you will need expressions.

    Dan Ebberts has very graciously made some sample code for a very flexible counter available online.

    Quickly simplifying this to count up by 1, from 1, every 9 frames, we get:

    frames = 9;
    clockStart = 1;
    rate = (1/thisComp.frameDuration) / frames;
    clockTime = clockStart + rate*(time - inPoint);
    Math.floor(clockTime);

    Alt-click (Option-click on a Mac) on the stopwatch for the Source Text property of a text layer and paste that code in.

    Walter Soyka
    Principal & Designer at Keen Live
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    RenderBreak Blog – What I’m thinking when my workstation’s thinking
    Creative Cow Forum Host: Live & Stage Events

  • Simon Jones

    August 23, 2010 at 2:00 pm

    Thanks very much for the help

    it’s all about the X and the Y

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