How to add subtitle clips with python script ?
Hi all,
I'm looking for the counterpart python function that can an append new subtitle clip in subtitle track, just like the "Add New" button in the inspector of a subtitle clip. I tried to access a clip in suctitle track but didn't see any "Add New" related function provided. Does anyone know how to do it correctly ?
I'm looking for the counterpart python function that can an append new subtitle clip in subtitle track, just like the "Add New" button in the inspector of a subtitle clip. I tried to access a clip in suctitle track but didn't see any "Add New" related function provided. Does anyone know how to do it correctly ?
- Code: Select all
import DaVinciResolveScript as dvr_script
resolve = dvr_script.scriptapp("Resolve")
projectManager = resolve.GetProjectManager()
current_proj = projectManager.GetCurrentProject()
current_timeline = current_proj.GetCurrentTimeline()
subtitle_item_list = current_timeline.GetItemListInTrack('Subtitle', 1)
subtitle_clip = subtitle_item_list[0]
dir(subtitle_clip) # No add new clip function available