Create Milliseconds Timer

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

mARTIN-24

  • Posts: 70
  • Joined: Thu Jun 27, 2019 6:06 am
  • Real Name: Martin Gabel

Create Milliseconds Timer

PostFri Apr 25, 2025 4:55 pm

Hi all.
Running DR Studio 19.1.4 on Win 10
So usually you stack a Text+ above your clip. Right click in the text-field and select "TimeCode".

This works pretty well but counts frames instead of milliseconds.
Now I'm trying to find a way to enter this expression which calculates my 30fps frames into ms:
Code: Select all
[h]:[m]:[s]:[round(f * 1000 / 30, 0)]


... but where ?
Offline
User avatar

KrunoSmithy

  • Posts: 4578
  • Joined: Fri Oct 20, 2023 11:01 pm
  • Warnings: 1
  • Real Name: Kruno Stifter

Re: Create Milliseconds Timer

PostSat Apr 26, 2025 10:42 am

I am not an expression expert or anything, but here are some resources to get you started. You can find more if you search for it. But if its a simple one time animation vs reusable macro that might mean differnt approach. One is easier than the other.

30 fps is 33.333333333333336 ms

https://www.sabbirz.com/blog/create-a-c ... lve-fusion

viewtopic.php?f=22&t=76097

ALL About Expressions PLUS Animated Counter Tutorial / Davinci Resolve / Fusion



Make a Simple Count Down Timer with Expressions! - Fusion/Resolve 15 Tutorial



How to Create Animated Custom Number Counter using Expressions in DaVinci Resolve - Fusion Tutorial

Offline

mARTIN-24

  • Posts: 70
  • Joined: Thu Jun 27, 2019 6:06 am
  • Real Name: Martin Gabel

Re: Create Milliseconds Timer

PostSat Apr 26, 2025 6:18 pm

Hi

Thanks for putting me in the right direction. Unfortunately the videos were not that helpful, but after some new "inspiration", digging through google/chatGPT and a ton of trial and error - I finally found it :D
Code: Select all
os.date("%M:%S",(time/30))..":"..(string.format("%03d",(time%30)*1000/30))


You'll need to insert this expression into your Text+ node to get a M:S:SS timer

PS: I might add that DR is not alway "in the mood" to work correctly.
I had it twice that the correct time was shown in the Inspector but only a few numbers were put in the clip.
If something like this happens, you'll need to restart DR.
Last edited by mARTIN-24 on Sat Apr 26, 2025 6:24 pm, edited 1 time in total.
Offline
User avatar

KrunoSmithy

  • Posts: 4578
  • Joined: Fri Oct 20, 2023 11:01 pm
  • Warnings: 1
  • Real Name: Kruno Stifter

Re: Create Milliseconds Timer

PostSat Apr 26, 2025 6:21 pm

Cool. Thanks.

Return to DaVinci Resolve

Who is online

Users browsing this forum: panos_mts, Rickett and 328 guests