Created
June 2, 2025 15:10
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
Workspace
-Console
-Py3
and paste the scriptFor photos, you can use
time_created = clip.GetMetadata('Date Recorded')[-8:]
instead.Source: Christoph Schmid in Blackmagic Forum