Daniyar OrmaqaiDaniyar

Your first hour scripting DaVinci Resolve

, 1 minute read

Resolve Studio can be driven from Python. The scripting API is the same one used by many pipeline tools, and it is a good way to automate the repetitive parts of a project.

Set it up

In Resolve, open Preferences, System, General and set External scripting using to Local. This is available in the Studio version.

Then point Python at the scripting module. The path depends on your system, so check the README that ships with Resolve for the exact location.

Your first script

import DaVinciResolveScript as dvr

resolve = dvr.scriptapp("Resolve")
project = resolve.GetProjectManager().GetCurrentProject()
pool = project.GetMediaPool()

folder = pool.GetCurrentFolder()
for clip in folder.GetClipList():
    print(clip.GetName())

If that prints your clip names, the connection works and everything else in the API is within reach.

What to try next

  • Add a marker to every clip longer than ten seconds.
  • Rename timelines from a spreadsheet.
  • Export a render preset for each deliverable.