View all expressions
Transformation

Timecode Counter with Drop Frame Support

Displays a timecode counter, formatted correctly with hours, minutes, seconds, and frames.

Contributed by:


fps = 30 // Insert frame rate here
frames = Math.floor(time * fps);
hours = Math.floor(frames / (fps * 3600));
minutes = Math.floor((frames % (fps * 3600)) / (fps * 60));
seconds = Math.floor((frames % (fps * 60)) / fps);
frames = frames % fps;(hours < 10 ? "0" : "") + hours + ":" +(minutes < 10 ? "0" : "") + minutes + ":" +(seconds < 10 ? "0" : "") + seconds + ":" +(frames < 10 ? "0" : "") + frames;

Timecode Counter with Drop Frame Support

Practical use case

Used for creating on-screen timecode displays that match frame rates accurately.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image