-
Notifications
You must be signed in to change notification settings - Fork 0
/
CurrentFolder Clips TC Start 0.py
41 lines (34 loc) · 1.04 KB
/
CurrentFolder Clips TC Start 0.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/ python
import sys
sys.path.append("/Library/Application Support/Blackmagic Design/DaVinci Resolve/Developer/Scripting/Modules")
import DaVinciResolveScript as dvr_script
try:
resolve = dvr_script.scriptapp("Resolve")
pm = resolve.GetProjectManager()
proj = pm.GetCurrentProject()
tl = proj.GetCurrentTimeline()
mp = proj.GetMediaPool()
rootfolder = mp.GetRootFolder()
rootclips = rootfolder.GetClips()
ms = resolve.GetMediaStorage()
folder = mp.GetCurrentFolder()
clips = folder.GetClips()
except:
print("Open the script file and copy/paste in DVR Console :)")
sys.exit()
x = 0
y = 0
for i in clips:
GetClipName = (clips[i].GetClipProperty("Clip Name"))["Clip Name"]
GetStartTC = (clips[i].GetClipProperty("Start TC"))["Start TC"]
x += 1
if GetStartTC != "00:00:00;00":
clips[i].SetClipProperty("Start TC", "00:00:00:00")
print GetClipName
y += 1
print
print 'End of script'
print 'Number of clip found:'
print x
print 'Number of "timecode start" modify:'
print y