how to script adding titles over image

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline
User avatar

spinhead

  • Posts: 12
  • Joined: Sun Mar 01, 2020 6:39 pm
  • Location: PHX AZ
  • Real Name: Joel D Canfield

how to script adding titles over image

PostTue Jun 17, 2025 12:56 am

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.)

Return to DaVinci Resolve

Who is online

Users browsing this forum: CodeTech, Google [Bot], mpetech and 84 guests