scripting limitations on collaborative project

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

ambustion

  • Posts: 24
  • Joined: Mon Jun 24, 2019 4:36 pm
  • Real Name: Brendon Rathbone

scripting limitations on collaborative project

PostThu Oct 21, 2021 5:31 am

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:

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))
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 13875
  • Joined: Wed Aug 22, 2012 7:08 am

Re: scripting limitations on collaborative project

PostFri Oct 22, 2021 6:30 am

moved to resolve forum
DaVinci Resolve Product Manager
Offline

ColinMcT

  • Posts: 54
  • Joined: Sat Jul 10, 2021 11:14 pm
  • Real Name: Colin McTaggart

Re: scripting limitations on collaborative project

PostFri Oct 22, 2021 7:57 am

API scripts have been improved with the new 17.4 update. I wonder if this would help you? Sounds like an interesting script you are making
DaVinci Resolve Studio 17.4.3
2019 27" iMac 40gig ram
BM Speed Editor
BM Editor Keyboard
Ultrastudio mini 4K
BM Micro Panel
Offline

ambustion

  • Posts: 24
  • Joined: Mon Jun 24, 2019 4:36 pm
  • Real Name: Brendon Rathbone

Re: scripting limitations on collaborative project

PostTue Jan 11, 2022 4:31 am

Not sure if it has been fixed but I ended up getting around it with the new set timecode parameter if anyone else is trying to figure it out. As long as you are on the clip it works. Kind of nice to have it go through the timeline and watch everything apply anyway.

So much fun new stuff especially with stills.

Return to DaVinci Resolve

Who is online

Users browsing this forum: dalerodgers, Dieter Scheel, Google [Bot], panos_mts, shebbe, Steve Alexander and 191 guests