dev_willis wrote:Here's a simpler version which may be slightly easier to read for non-coders. This can be copy/pasted right into Resolve's console window as well; just make sure to select the "Py3" option at the top of the window.
- Code: Select all
pm = resolve.GetProjectManager()
proj = pm.GetCurrentProject()
mp = proj.GetMediaPool()
bin = mp.GetCurrentFolder()
clips = bin.GetClipList()
print('For ' + str(len(clips)) + ' clips in ' + bin.GetName())
for c in clips:
result = ''
if c.SetClipProperty('Start TC', '00:00:00:00'):
result = '*success*'
else:
result = '!failed!!'
print(result, c.GetClipProperty('Start TC')['Start TC'], c.GetClipProperty('File Name')['File Name'])
I am looking for a solution to assign the starting timecode of 0:00 to all the clips in the media pool and stumbled upon this post. I tried to use the scripts you guys have posted here but I have no idea how. I have no scripting experience whatsoever. I am working on Mac, Apple Silicone, MacOS Monterey.
So what I've done is I downloaded and installed Python 3.6. I copied a script from here, then went into Resolve > Workspace > Console. Inside the console I selected Python3, pasted the script into the typing field and pressed enter. The script shows up inside the console, but nothing happens. No error messages either. What am I doing wrong? I tested all the scripts you guys have posted here but nothing works.
I also tried pasting the script into Sublime Text, saved it as a .py file in the Scripts directory and inside Resolve > Workspace > Scripts > Comp, my script file shows up and is selectable, but when I click on it, nothing happens.
What am I missing?
