
- Posts: 2
- Joined: Tue Apr 01, 2025 3:12 pm
- Real Name: DANI
Subject: Issues with Exporting Projects via DaVinci Resolve API Script
Hello everyone! Im quite new to blackmagic and Im currently trying to create a script to automate the export of all my projects from DaVinci Resolve using the scripting API. However, I've encountered some issues that I can't seem to resolve, and I'm hoping for some guidance from the community.
Setup:
DaVinci Resolve version: [18.6]
Operating System: [MacOS Sonoma 14.5]
Python version: [3.10]
Objective:
I want to export all projects in my current project library to .drp files without manually opening each project.
Script Overview:
Here's a simplified version of the script I'm using:
Issues Encountered:
Error Message: 'NoneType' object is not callable when attempting to use ExportProject.
Inconsistent Project List: The list of projects sometimes appears empty or incomplete.
Project Loading: Some projects fail to load, returning None.
Troubleshooting Steps Taken:
Verified connection to DaVinci Resolve and access to the Project Manager.
Checked permissions for the export directory.
Attempted manual export through the DaVinci Resolve interface, which works fine.
Reviewed the API documentation for correct usage of ExportProject.
Questions:
Is there a known issue with the ExportProject method in certain versions of the API?
Are there additional steps required to ensure projects are loaded and exported correctly?
Could there be a configuration or permission setting in DaVinci Resolve affecting the script?
Any insights or suggestions would be greatly appreciated. Thank you in advance for your help!
Best regards,
Daniel
Hello everyone! Im quite new to blackmagic and Im currently trying to create a script to automate the export of all my projects from DaVinci Resolve using the scripting API. However, I've encountered some issues that I can't seem to resolve, and I'm hoping for some guidance from the community.
Setup:
DaVinci Resolve version: [18.6]
Operating System: [MacOS Sonoma 14.5]
Python version: [3.10]
Objective:
I want to export all projects in my current project library to .drp files without manually opening each project.
Script Overview:
Here's a simplified version of the script I'm using:
- Code: Select all
import os
import DaVinciResolveScript as dvr
resolve = dvr.scriptapp("Resolve")
if resolve:
project_manager = resolve.GetProjectManager()
if project_manager:
all_projects = project_manager.GetProjectListInCurrentFolder()
for project_name in all_projects:
project = project_manager.LoadProject(project_name)
if project:
export_path = f"/path/to/export/{project_name}.drp"
success = project.ExportProject(export_path)
if not success:
print(f"Failed to export project: {project_name}")
else:
print(f"Failed to load project: {project_name}")
Issues Encountered:
Error Message: 'NoneType' object is not callable when attempting to use ExportProject.
Inconsistent Project List: The list of projects sometimes appears empty or incomplete.
Project Loading: Some projects fail to load, returning None.
Troubleshooting Steps Taken:
Verified connection to DaVinci Resolve and access to the Project Manager.
Checked permissions for the export directory.
Attempted manual export through the DaVinci Resolve interface, which works fine.
Reviewed the API documentation for correct usage of ExportProject.
Questions:
Is there a known issue with the ExportProject method in certain versions of the API?
Are there additional steps required to ensure projects are loaded and exported correctly?
Could there be a configuration or permission setting in DaVinci Resolve affecting the script?
Any insights or suggestions would be greatly appreciated. Thank you in advance for your help!
Best regards,
Daniel