Skip to content

Instantly share code, notes, and snippets.

@Steppschuh
Created June 2, 2025 15:10
Show Gist options
  • Save Steppschuh/08abcaeb56a75fadf6009c3e61067a61 to your computer and use it in GitHub Desktop.
Save Steppschuh/08abcaeb56a75fadf6009c3e61067a61 to your computer and use it in GitHub Desktop.
Davinci Resolve script to change the start timecode of media pool items to the creation time
projectManager = resolve.GetProjectManager()
project = projectManager.GetCurrentProject()
mediapool = project.GetMediaPool()
currFolder = mediapool.GetCurrentFolder()
clips = mediapool.GetSelectedClips()
if not clips:
clips = currFolder.GetClipList()
for clip in clips:
old_timecode = clip.GetClipProperty('Start TC')
time_created = clip.GetClipProperty('Date Created')[-8:]
timecode = time_created + ':00'
if clip.SetClipProperty("Start TC", timecode):
print(f'Changed Start Timecode of "{clip.GetName()}" from {old_timecode} to {timecode}')
@Steppschuh
Copy link
Author

Steppschuh commented Jun 2, 2025

Usage:

  • Select a bin or clips in the Media Pool
  • Go to Workspace - Console - Py3 and paste the script

For photos, you can use time_created = clip.GetMetadata('Date Recorded')[-8:] instead.

Source: Christoph Schmid in Blackmagic Forum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment