Possible to SetName on a subtitle via Python?

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

robstenson

  • Posts: 1
  • Joined: Sun Dec 27, 2020 10:48 pm
  • Real Name: Rob Stenson

Possible to SetName on a subtitle via Python?

PostSun Dec 27, 2020 10:54 pm

I'm working on some Python code to read and modify subtitles in a Resolve timeline, and while the GetName seems to work well on subtitle objects, there is no SetName equivalent implemented. Is there any other way to set the programmatically set a subtitle's text/name (or "Caption" as it's called in the Inspector). As far as I can tell there aren't any associated objects (comps / media pool items) available for subtitle objects, but I'm hoping there might be some other way to set the text?
Offline
User avatar

iddos-l

  • Posts: 800
  • Joined: Sat Mar 30, 2019 7:55 pm
  • Real Name: iddo lahman

Re: Possible to SetName on a subtitle via Python?

PostMon Dec 28, 2020 5:33 am

As far as I know (v16) there is no way to change subtitles properties with scripting.
You can modify the source srt file with python.


Sent from my iPhone using Tapatalk

Return to DaVinci Resolve

Who is online

Users browsing this forum: AndreN, Majestic-12 [Bot], panos_mts, pelincesmi, Yahoo [Bot] and 263 guests