DaVinci Resolve scripting
Scripting DaVinci Resolve with Claude Code.
What Resolve’s Python API is good for, the traps nobody documents, and why our films now skip Resolve for the heavy steps.
What we use Resolve's scripting for.
DaVinci Resolve has a Python API. Claude Code can drive it the same way it drives any other tool: write the script, run it against the open project, read the result, and fix what's wrong. We use it for three jobs:
- The stills library. Build a timeline of one-frame subclips, one every few seconds of every clip, and render it once as a still sequence. 210 clips rendered in 16 seconds. Every still is renamed by its clip, and the whole shoot sits on one board.
- Reading a cut. List what is on a timeline: every clip, its in and out, its track. That turns a timeline into something the agent can reason about.
- Rebuilding a cut. Make a new timeline with the edit changed: add handles, retrim, reorder, close gaps. A new version, never the old one overwritten.
The traps we hit, so you don't have to.
None of these is in the official documentation in a way you would find before it bit you. Each one cost us a render or a crash.
| What happened | What's really going on |
|---|---|
| A clip came up one frame short. | AppendToTimeline's end frame is exclusive. Ask for the frame after the last one you want. |
| The project "saved" but nothing changed. | SaveProject lives on the ProjectManager, not on the project. |
| Stabilize ran and did nothing. | Stabilize() silently skips a clip that already holds stabilizer analysis. No error, no warning. |
| A grade copied across clips undid the stabilizing. | The stabilizer's analysis lives inside the clip's grade and travels with every grade transfer. Grade first, copy the grade, stabilize last, and never recreate a clip afterwards. |
| BRAW rendered flat and gray. | Blackmagic RAW renders as flat log unless the project is color managed. |
| Resolve crashed. | Applying a grade from a DRX file, and exporting stills from the Console, crashed Resolve 21.0.4. We stopped doing both from scripts. |
Why our films now skip Resolve for the heavy steps.
For a new film from BRAW, the grade and the stabilizing no longer go through Resolve at all. The Blackmagic RAW SDK reads the camera's own 16-bit log and its gyro data straight from the file. The grade applies Blackmagic's own transform. The result matched Resolve's flat log to within half a percent per channel, and the stabilizing measured steadier than Resolve's on the same shot (the numbers are here).
Resolve stays where it is the best tool: reading and rebuilding timelines, and the stills library on older projects.
The rule behind it.
Every Resolve script answers to a written workflow, and every workflow ends with a check on the file it made. When a script fails, the fix goes into the workflow, so the same trap is never hit twice. That is the difference between a clever script and a system. How the whole system fits together.
Start here
Three ways in. All free.
The Skool community
Directed, Not Operated: one-minute videos, one step each, and a place to ask how. Free on Skool.
Join the free SkoolOne useful video a week.
One step of the system, about a minute long, in your inbox. Nothing else.
A 15-minute call
Tell me what slows your edit down. I'll tell you which step I'd hand to the system first.
Book a free 15-minute call