Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions creating a 3d counting clock

  • creating a 3d counting clock

    Posted by Alex Dinnin on October 4, 2012 at 2:49 pm

    I wonder if you can help me..

    I’ve rendered out some glass numbers 0-9 in a 3d program.

    I want to be able to use these to make a clock to count up to 999

    I’ve put the numbers in a sequenced pre comp counting from 0-9

    I’ve then bought this into a new comp.

    I’m trying to put an expression on the time remapping so that when a move a slider…

    The hundred figure (left hand figure changes from 0 to 1 at a 100
    The double figure counts from 0 – 9 on the tens
    The single figure counts from 0 – 1 on the ones but when it gets to 10 reverts back to 0.

    thus giving me my very own counter..

    is this possible.. any pointers someone might be able help with ??

    kind regards

    Alex

    Alex Dinnin replied 13 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 4, 2012 at 3:15 pm

    Assuming that you’ve sequenced them so that each number is one frame,
    something like this should work for ones:

    s = thisComp.layer(“controls”).effect(“Slider Control”)(“Slider”);
    f = Math.floor(s)%10;
    framesToTime(f)

    for tens:

    s = thisComp.layer(“controls”).effect(“Slider Control”)(“Slider”);
    f = Math.floor(s/10)%10;
    framesToTime(f)

    for hundreds:

    s = thisComp.layer(“controls”).effect(“Slider Control”)(“Slider”);
    f = Math.floor(s/100)%10;
    framesToTime(f)

    Dan

  • Alex Dinnin

    October 5, 2012 at 9:49 am

    Thanks very much Dan

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