Seems like I need to use InsertTitleIntoTimeline(titleName) but exactly how escapes me.
I've cobbled this together from other examples; it creates a timeline and adds the image.
- Code: Select all
resolve = Resolve()
projectManager = resolve:GetProjectManager()
project = projectManager:GetCurrentProject()
currentProject = project:GetMediaPool()
timeline = currentProject:CreateEmptyTimeline("My Picture")
newImage = currentProject:ImportMedia('/actual/path/to/image.jpg')
clip = currentProject:AppendToTimeline(newImage)
Eventually I want to add multiple titles at specific timecodes but for now I just want to understand how to add a single title over this image. Trying to grasp the syntax of scripting DaVinci with Lua. (I use Lua with Hammerspoon so I'm more familiar with Lua than Python.)