- Posts: 25
- Joined: Mon Jun 24, 2019 4:36 pm
- Real Name: Brendon Rathbone
Hey guys,
Just wondering if anyone else has run into this. I'm trying to fix up a script I have for automating dailies tasks in resolve and using the SetLut() function, I have run into a bit of a wall. If I call a script to set lut for all clips in timeline(let alone matching them to a set of CDL's and LUT's) I only get the lut applied to one clip(the clip I am currently on) if I am in a collaborative project. If I am in a non-collab project, it correctly applies all luts to all clips. Has anyone seen this behavior before and are there any other limitations to the api in collaborative projects I should be aware of?
I am currently testing on resolve 17.2.2 as well.
My very simple script to test the behavior is here:
Just wondering if anyone else has run into this. I'm trying to fix up a script I have for automating dailies tasks in resolve and using the SetLut() function, I have run into a bit of a wall. If I call a script to set lut for all clips in timeline(let alone matching them to a set of CDL's and LUT's) I only get the lut applied to one clip(the clip I am currently on) if I am in a collaborative project. If I am in a non-collab project, it correctly applies all luts to all clips. Has anyone seen this behavior before and are there any other limitations to the api in collaborative projects I should be aware of?
I am currently testing on resolve 17.2.2 as well.
My very simple script to test the behavior is here:
- Code: Select all
lut = r"C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\LUT\mysweetlut.cube"
projectManager=resolve.GetProjectManager()
project=projectManager.GetCurrentProject()
timeline=project.GetCurrentTimeline()
currClip = timeline.GetCurrentVideoItem()
TimelineText="Timeline Clips - " + timeline.GetName()
trackList=timeline.GetTrackCount("video")
clipList=[]
for x in range(1 , int(trackList) + 1):
tmpclipList=timeline.GetItemListInTrack("video" , x)
if tmpclipList == None:
print()
else:
for y in tmpclipList:
clipList.append(y)
for x in clipList:
print(x.GetName())
print(x.SetLUT(1,lut))