ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Digital counter

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Daniel Neutzsky-WulffDigital counter
by on Jan 30, 2013 at 11:01:50 pm


I need to make a digital counter.

Something like this:



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,

Return to posts index

Angelo LorenzoRe: Digital counter
by on Jan 30, 2013 at 11:18:32 pm

What 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 Lorenzo

Need 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

Return to posts index

Daniel Neutzsky-WulffRe: Digital counter
by on Jan 30, 2013 at 11:47:06 pm

I'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.

Return to posts index

John CuevasRe: Digital counter
by on Jan 31, 2013 at 12:36:36 pm

Here'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:

Johnny Cuevas, Editor

"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.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved