Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Analog counter expression…

  • Analog counter expression…

    Posted by Francois Germain on June 18, 2012 at 5:00 pm

    Hi guys. I’m trying to make an analog counter like an odometer. Aharon Rabinowitz made a great poscast on that subject. But the way it’s made, the decade number has an expression that it goes 1/10 the speed of the units number. The hundred number is 1/10 the speed of the decade number and so on.

    What I’m looking for is an expression that make the decade number change between number 9 and 0 of the unit number. Each time the unit number switch from 9 to 0, the decade number increments of one.

    I hope it’s clear for you. English is not my first language.

    Thanks

    Liran Tabib replied 7 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Francois Germain

    June 19, 2012 at 2:41 pm

    Hey I’ve found it.

    If you follow the odometer tutorial from Aharon Rabinowitz
    https://library.creativecow.net/articles/rabinowitz_aharon/Odometer_2/video-tutorial

    there’s the expression you put in the Offset effect (shift to center property)
    Depending of the digit, you have to modify the start_value and the End_value. Hope someone will use it.

    variableSlider =thisComp.layer("master compteur").effect("Slider Control")("Slider");// this line depends of your layer's name of course;

    digit1 = Math.floor(variableSlider%10);
    digit2 = Math.floor(variableSlider/10);
    digit3 = Math.floor(variableSlider/100);
    digit4 = Math.floor(variableSlider/1000);
    digit5 = Math.floor(variableSlider/10000);
    digit6 = Math.floor(variableSlider/100000);
    digit7 = Math.floor(variableSlider/1000000);

    start_value=digit2;
    end_value=digit2+1;
    space_between_numbers=192
    column_height=1920
    offset=thisComp.layer("master compteur").effect("Slider Control")("Slider")%10;
    y=value[1];
    x=linear(offset,9,10,start_value,end_value);
    [x*space_between_numbers%column_height,y]

  • Liran Tabib

    September 11, 2018 at 12:43 pm

    You can create odometer animation with Analog Counter preset in the link below:
    https://www.vdodna.com/products/analog-counter/

    Cheers

    Liran Tabib
    http://www.vdodna.com

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