Script access to timeline items

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


  • Posts: 1
  • Joined: Tue Nov 06, 2018 4:10 pm
  • Real Name: John Pope

Script access to timeline items

PostTue Nov 06, 2018 4:51 pm

Im trying to programmatically set keyframes for timeline clips, for things like Transform->Position/Zoom and Composite->Opacity

Using the following script I can access the timeline item, but none of the members of 'Timeline item' (GetDuration, GetFlags, GetMarkers, etc) appear to point to these properties. How can I modify these values?

It would also be useful if, instead of "timeline.GetItemsInTrack("video",1)" I could use something like "GetCurrentlySelectedItem()" but that also seems un-doable.

Code: Select all
import imp
dr = imp.load_source('DaVinciResolveScript', 'C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\Developer\Scripting\Modules\')
resolve = dr.scriptapp('Resolve')

projectManager = resolve.GetProjectManager()
project = projectManager.GetCurrentProject()
timeline = project.GetCurrentTimeline()

items = timeline.GetItemsInTrack("video",1)
item = items[1]
print(item.GetName()) #Item successfully acquired



  • Posts: 4
  • Joined: Sun Oct 06, 2019 1:30 pm
  • Real Name: Johannes Heintz

Re: Script access to timeline items

PostSun Oct 06, 2019 5:29 pm

I'm trying to do something similar. Did you find a solution?

Return to DaVinci Resolve

Who is online

Users browsing this forum: teacherjojo and 79 guests