Fri Jun 13, 2025 5:47 am
Hello, I'm attempting to write a script to automate a certain repetitive task. It's my first time tackling this via scripting. I'm writing in Python. I've used an extension created by asherroland on YouTube. The problem is that for some reason bmd is undefined. The error message I got is:
"bmd" is not defined Pylance(reportUndefinedVariable) [Ln 2, Col 11]
The lines that I got is this:
resolve = bmd.scriptapp('Resolve')
project_manager = resolve.GetProjectManager()
media_storage = resolve.GetMediaStorage()
project = project_manager.GetCurrentProject()
timeline = project.GetCurrentTimeline()
media_pool = project.GetMediaPool()
gallery = project.GetGallery()
I'm using DaVinci Resolve 19, version 19.0. I've also attempted to run the script inside DaVinci Resolve 19, and I got an error message:
Traceback (most recent call last):
File "<nofile>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'GetProjectManager'
I know it's because bmd was not defined. Yet, bmd worked inside DaVinci Resolve 19's console, it just wasn't defined in Visual Studio Code. I've informed the extension creator of it, he said to contact bmd support.