Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Count down with expresssions

  • Count down with expresssions

    Posted by Sam Baum on June 3, 2011 at 3:29 pm

    Hi all

    I’ve just done this great tutorial: https://vimeo.com/4409159

    However I need the numbers to go backwards. The tutor generates the numbers in relation to a slider he creates that tracks the time. The new number (the falling one) gets it’s value by rounding the timecode up, so if we are at 2.5 seconds then the new number is 3. The opposite is for the old number (the one that will be covered by the falling number, so this is rounded down.

    He uses this expression: src =comp (“Flip Clock Render”).layer(“Clock”).effect(“Time”)(“Slider”);
    Math.floor(src)

    What I need is for my counter to count down. So if the duration of the clip is 10 seconds then somehow at 2 seconds it shows 8.

    Can anyone help?

    Thanks

    Sam

    src =comp ("Flip Clock Render").layer("Clock").effect("Time")("Slider");
    Math.floor(src)

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Sam Baum replied 14 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 3, 2011 at 4:43 pm

    Something like this should work:

    tStart = 10;
    src = comp (“Flip Clock Render”).layer(“Clock”).effect(“Time”)(“Slider”);
    Math.floor(tStart – src)

    You’ll probably have to swap the usage of Math.floor() and Math.ceil().

    Dan

  • Sam Baum

    June 3, 2011 at 4:49 pm

    Awesome! Thanks Dan. I think this is going to crack it!!!

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