Activity › Forums › Adobe After Effects › Digital counter
-
Digital counter
Posted by Daniel Neutzsky-wulff on January 30, 2013 at 11:01 pmHi,
I need to make a digital counter.
Something like this:
HH:MM:SS
32:22:43
It’s for a movie watching marathon and I need to show how long the contestants have been watching.
I’ve tried different methods, but I find it very hard to control the timer. For some reason I can’t go above 24 hours?
Best regards,
DanielJohn Cuevas replied 13 years, 3 months ago 3 Members · 3 Replies -
3 Replies
-
Angelo Lorenzo
January 30, 2013 at 11:18 pmWhat scripts have you tried? Seems as simple to me as adding an offset like HH+24 once you get past 24 hours.
It’s be nice to see what you’re working with. I don’t have any pre-made scrips for that offhand.
——————–
Angelo LorenzoNeed to encode ProRes on your Windows PC?
Introducing ProRes Helper, an awesome little app that makes it possible
Fallen Empire Digital Production Services – Los Angeles
RED transcoding, on-set DIT, and RED Epic rental services
Fallen Empire – The Blog
A blog dedicated to filmmaking, the RED workflow, and DIT tips and tricks -
Daniel Neutzsky-wulff
January 30, 2013 at 11:47 pmI’m fairly new to this. I simply added a solid and added the effect: Text>Numbers
I’ve been altering the look and so forth, but I still can’t get full control of the timecode.
-
John Cuevas
January 31, 2013 at 12:36 pmHere’s an expression I modified from the book After Effects Expressions
If you are unfamiliar with expressions, what you want to do is create a new text layer (shift+cntl+alt+T) and twirl open the properties to reveal the source text. Alt+click the Source Text stopwatch and paste this expression:
var startingHour = 10;
var startingMinute = 59;
var startingSecond = 4;
var seconds = Math.floor(time) + startingSecond;
var minutes = Math.floor(seconds / 60) + startingMinute;
var hours = Math.floor(minutes/60) +startingHour;
var secondsAsPartsOfAMinute = Math.floor(seconds % 60);
var minutesPerHour=Math.floor(minutes % 60);
function addZeros(rawNumber)
{
if (rawNumber < 10) return "0" + rawNumber;
return "" + rawNumber;
}
addZeros(hours)+ ":" + addZeros(minutesPerHour) + ":" + addZeros(secondsAsPartsOfAMinute);With this expression you can set your starting time by chaning the “starting” variables. Just in case anything was unclear, here’s my work file: 5347_timer.aep.zip
Johnny Cuevas, Editor
Thinkck.com“I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
—THOMAS EDISON on inventing the light bulb.
Reply to this Discussion! Login or Sign Up