Hello,
I'm trying to create some titles via Python 3.6 and I can't get this function to work:
InsertTitleIntoTimeline(titleName)
Here's my test code:
- Code: Select all
#!/usr/bin/env python
# scripting module import
import imp
expectedPath="/Library/Application Support/Blackmagic Design/DaVinci Resolve/Developer/Scripting/Modules/"
bmd = imp.load_source('DaVinciResolveScript', expectedPath+"DaVinciResolveScript.py")
import DaVinciResolveScript as bmd
# variables init
resolve = bmd.scriptapp("Resolve")
projectManager = resolve.GetProjectManager()
currentProject = projectManager.GetCurrentProject()
currentTimeline = currentProject.GetCurrentTimeline()
### trying to add title
title = currentTimeline.InsertTitleIntoTimeline('titleName', 'test')
print(title)
When I run this code, it doesn't create a title and doesn't give an error in the console.
Am I doing something wrong?
Resolve 17.2.2, Python 3.6.8, macOS 10.15.7