Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Creating a dissolve between numbers in counter expression

  • Creating a dissolve between numbers in counter expression

    Posted by Ian Ellerby on January 27, 2015 at 11:34 am

    Hi

    I’m using a counter expression, going from 1-1000 in 1000 seconds, so one number per second, and would like a dissolve between these numbers, does anyone know if this is possible? I can’t work this one out.
    Be grateful of any thoughts.
    Thanks Ian

    Ian Ellerby replied 11 years, 3 months ago 2 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    January 27, 2015 at 8:17 pm

    Here’s one way.

    1. Create a text layer.

    2. Duplicate it.

    3. To the top copy’s Source Text property, add this expression:

    Math.floor(time)+1;

    4. To the top copy’s Opacity property, add this expression:

    tFade = .25;
    t = time%1;
    linear(t,1-tFade,1,100,0)

    5. To the bottom copy’s Source Text property, add this expression:

    tFade = .25;
    Math.floor(time+tFade)+1;

    Dan

  • Ian Ellerby

    January 28, 2015 at 11:50 am

    Wow Dan, that’s great, thanks so much for sending this.
    It has more of a pulsing dissolve than a gradual dissolve, which is really working for me as I’m also trying to create a one second heart beat pulse change here. I’ve tweaked the tFade = .25; a little.
    Really do appreciate your help here.
    Thanks
    Ian

  • Ian Ellerby

    January 29, 2015 at 12:29 pm

    Hi Dan
    I’m trying to tweak the time property between each change of numbers. At the moment it changes every 1 sec per number, I’d like to increase this to say 1.5 secs. I can’t seem to change any value to make this happen. Do I need to add another line of expression?
    If you get a moment
    Thanks Ian

  • Dan Ebberts

    January 29, 2015 at 5:59 pm

    I think this will work better.

    Top layer Source Text:

    dur = 1.5;
    Math.floor(time/dur)+1;

    Top layer Opacity:

    dur = 1.5;
    tFade = .5;
    t = time%dur;
    linear(t,dur-tFade,dur,100,0)

    Bottom layer Source Text:

    dur = 1.5
    tFade = .5;
    Math.floor((time+tFade)/dur)+1;

    Bottom layer Opacity

    dur = 1.5;
    tFade = .5;
    t = time%dur;
    linear(t,dur-tFade,dur,0,100)

    Dan

  • Ian Ellerby

    January 29, 2015 at 6:16 pm

    Thanks very much Dan, it looks good. Sort of understand what you’ve done.
    Do appreciate your help. I’m sure a lot of guys new to expressions do also.
    Thanks Ian

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