Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects percent loader fake

  • percent loader fake

    Posted by Isaac on August 23, 2005 at 4:31 pm

    i am making a loader to start my video (not a real loader, just animated) but i am really putting 100% in there. i have a script that does a timer from 20 minutes to 0…. i want modify it to go from 0% – 100% by the end of the composition. below is code i used for timer… ( i got this script from someone on here)

    //countdown clock in miliseconds
    ClockStart = 100; //Count to 100
    //start = ClockStart*60; //start time in seconds
    compTime = ClockStart – 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

    Plans fail for lack of counsel, but with many advisers they succeed.

    Isaac replied 20 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 23, 2005 at 5:56 pm

    How about this:

    percent = Math.round(linear(time,0,thisComp.duration-thisComp.frameDuration,0,100));
    “” + percent +”%”

    Dan

  • Isaac

    August 23, 2005 at 6:26 pm

    worked perfect…. thanks

    Plans fail for lack of counsel, but with many advisers they succeed.

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