Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects animating a cowntdown

  • Victor Nash

    March 9, 2007 at 1:15 am

    paste into source text..

    //countdown clock in miliseconds
    ClockStart = 05; //Start time in minutes
    start = ClockStart*70; //start time in seconds
    compTime = start – time;
    eTime = Math.floor(compTime);
    csec = Math.floor((compTime – eTime)*100);
    ms1 = Math.floor(csec/10);
    ms2 = csec%10;
    hr = Math.floor(eTime/3600);
    h1 = Math.floor(hr/10);
    h2 = hr%10;
    min = Math.floor((eTime – hr*3600)/60);
    m1 = min;
    m2 = min%10;
    sec = eTime – hr*3600 – min*60;
    s1 = Math.floor(sec/10);
    s2 = sec%10;
    m1 + ‘:’ + s1 + s2 + ‘.’ + ms1 + ms2

  • Victor Nash

    March 9, 2007 at 1:17 am

    or without ‘milli seconds”

    //countdown clock in miliseconds
    ClockStart = 05; //Start time in minutes
    start = ClockStart*70; //start time in seconds
    compTime = start – time;
    eTime = Math.floor(compTime);
    csec = Math.floor((compTime – eTime)*100);
    hr = Math.floor(eTime/3600);
    h1 = Math.floor(hr/10);
    h2 = hr%10;
    min = Math.floor((eTime – hr*3600)/60);
    m1 = min;
    m2 = min%10;
    sec = eTime – hr*3600 – min*60;
    s1 = Math.floor(sec/10);
    s2 = sec%10;
    m1 + ‘:’ + s1 + s2

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