Skip to main content
Peter J Kovacs
Inspiring
November 17, 2020
Question

Could somebody write me a simple countdown timer that'll work on a 23.976 comp?

  • November 17, 2020
  • 2 replies
  • 357 views

I need it to work such that when the composition hits the 24:00:00 mark, the timer will also show 24:00:00.

I've found countdown timer scripts online, but they all fail on 23.976 comps over a long duration. Maybe they're all designed to run on perfect 24fps comps.

This topic has been closed for replies.

2 replies

Participant
November 18, 2020

You want this to run as an expression on a text layer?

 

Participant
November 18, 2020

If you're thinking what I'm thinking, try applying this expression to the text property of a text layer:

var start = 240; // number of frames you want to offset by
var t = timeToFrames(x = time + thisComp.displayStartTime, fps = 1.0 / thisComp.frameDuration, isDuration = false);
timeToCurrentFormat(framesToTime(t + start, fps = 1.0 / thisComp.frameDuration), fps = 1.0 / thisComp.frameDuration, isDuration = false, ntscDropFrame = thisComp.ntscDropFrame);

The start variable is the frame equivalent of the timnecode you want to start from, so you don't have to start from "0:00:00:00". If you need to convert timecode to frames, try my timecode calculator (https://robwomack.com/timecode-calculator/), type in your timecode and click the TC button (it toggles between timecode and frames). Or take a look under the timecode in the AE timeline - it shows frame numbers there. If you want to start from zero, make start = 0.

Peter J Kovacs
Inspiring
November 17, 2020

One update... I meant to say a countup timer, not countdown