-
quick script help
I need a timecode counter that displays “hours:mins:seconds” The Plugin “TIMECODE” in AE doesn’t allow a lot of modification of the text and the text bounces around a bit.
It should be really easy to script for any of the pro’s out there. Here is what I have tried.
var clockID = 0;
function UpdateClock() {
if(clockID) {
clearTimeout(clockID);
clockID = 0;
}var tDate = new Date();
document.theClock.theTime.value = “”
+ tDate.getHours() + “:”
+ tDate.getMinutes() + “:”
+ tDate.getSeconds();clockID = setTimeout(“UpdateClock()”, 1000);
}
function StartClock() {
clockID = setTimeout(“UpdateClock()”, 500);
}function KillClock() {
if(clockID) {
clearTimeout(clockID);
clockID = 0;
}
}I have found some more like that but I get the “UNDEFINED” message in the window. I know I can do something with. Also I need it to go along with the comp timeline.
something like..Math.round(linear(time,0,thisComp.duration-thisComp.frameDuration,0,20));