Mailing List AE-List@media-motion.tv ? Message #49118
From: scott.aelist <scott.aelist@gmail.com>
Sender: <hedczech@gmail.com>
Subject: Re: [AE] digital clock
Date: Mon, 20 May 2013 16:11:46 -0700
To: After Effects Mail List <AE-List@media-motion.tv>
i found the below expression here:  http://www.youtube.com/watch?v=K-ilCXXAQGA
I suppose you could also use the timecode effect as well...
------------------------------------
countspeed = 1;
clockStart = 0;

function times(n){
  if (n < 10) return "0" + n else return "" + n
}

clockTime = clockStart +countspeed*(time - inPoint);

if (clockTime < 0){
  minus = "-";
  clockTime = -clockTime;
}else{
  minus = "";
}

t = Math.floor(clockTime);
h = Math.floor(t/3600);
min = Math.floor((t%3600)/60);
sec = Math.floor(t%60);
ms = clockTime.toFixed(3).substr(-3);
minus + times(h) + ":" + times(min) + ":" + times(sec)    ;  //   +  "."  + ms
//


On Mon, May 20, 2013 at 3:59 PM,  <pixelbot@comcast.net> wrote:
> I did a 30 minute timer once where I made the comp at 1 FPS
>
> tt
>
> ________________________________
> From: "Lou Wirth" <loutv@mindspring.com>
> To: "After Effects Mail List" <AE-List@media-motion.tv>
> Sent: Monday, May 20, 2013 3:54:23 PM
> Subject: [AE] digital clock
>
>
> Don't know why I am struggling with this.  I'm editing an eco-challenge
> video, client wants to put up a 24hr clock from time to time to let viewers
> know the duration of race.   I have scoured the AE lists and getting a few
> very dated tutorials but none really working.  Is there a modern, easy way
> to do HH:MM:SS  moving in realtime???
>
> thanks
>
> Lou
> Lou Wirth Productions
> 500Tamal Plaza, Suite 522
> Corte Madera, CA 94925
> www.louwirth.com
> 415-924-9411p
>
>
>
> +---End of message---+
> To unsubscribe send any message to <ae-list-off@media-motion.tv>
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster