Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions manipulatable timer with milliseconds?

  • manipulatable timer with milliseconds?

    Posted by Jimmy Brunger on June 23, 2009 at 3:58 pm

    Hi guys,

    This may be really simple, but I’m not an expressions guru…

    What I want to do with a text layer is have a 3 digit timer count from 0.00 > 9.69 (secs+hundredths)

    I want to be able to manipulate how long it does that over – eg: 2 seconds to count up.

    I’ve tried all the counter + timecode effects in AE and a couple of Dan Ebbert’s scripts, but the problem I’m having is that I can’t get it to stop on a certain millisecond, due to the 25fps thing.

    Closest I’ve got to what I want is a simple slider attached to source text and I type 0.00 at start of timeline and then a KF with 9.69 at 2 seconds. Problem is I get stuff like 4.845 at 1 second down the timeline. I only want 3 digits and 1 decimal place at all times..

    There must be an easy way…does anybody know a quick script?

    Thanks,
    Jim.

    Production Premium CS4 – Mocha v1.2.3 – FCP 5.1.4
    MacPro Quad 3GHz / ATI 1900XT / 8GB RAM / OSX 10.4.11
    30″ ACD / Decklink SP / SONY PVM-20M4E/ Wacom Intuos 3 A4 / XServe / United Digital RAID
    ———————————
    Production Premium CS2 – Combustion 3 – Mocha v1.0.1
    Win XP Pro 32 / Dell Precision T3400 Q6600 / 4GB RAM / NVidia Quadro570 / DeckLink Pro / Roland DS-5s / Sony BVM-20G1E / 2 x Dell 2007FP / Wacom Intuos 3 A4 / 320GB boot/800GB RAID-0

    Jimmy Brunger replied 17 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 23, 2009 at 4:36 pm

    This should be all you need:

    displayStart = 0;
    displayStop = 9.69;
    runStartTime = 0;
    runStopTime = 2;

    t = linear(time,runStartTime,runStopTime,displayStart,displayStop);
    t.toFixed(2);

    Dan

  • Jimmy Brunger

    June 24, 2009 at 8:17 am

    That’s great Dan, cheers. So simple…if you know what you’re doing!

    Production Premium CS4 – Mocha v1.2.3 – FCP 5.1.4
    MacPro Quad 3GHz / ATI 1900XT / 8GB RAM / OSX 10.4.11
    30″ ACD / Decklink SP / SONY PVM-20M4E/ Wacom Intuos 3 A4 / XServe / United Digital RAID
    ———————————
    Production Premium CS2 – Combustion 3 – Mocha v1.0.1
    Win XP Pro 32 / Dell Precision T3400 Q6600 / 4GB RAM / NVidia Quadro570 / DeckLink Pro / Roland DS-5s / Sony BVM-20G1E / 2 x Dell 2007FP / Wacom Intuos 3 A4 / 320GB boot/800GB RAID-0

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