RequestThe Resolve scripting API
Timeline object has a function for getting the position of the playhead:
- string GetCurrentTimecode()
It would be very helpful to be able to
set the playhead position as well:
- bool SetCurrentTimeCode(string timecode)
and, perhaps more easily:
- bool SetCurrentFrame(int frame)
Also, selecting Timeline Items is a much needed function:
- table SetSelectedTimelineItems(table items)
The returned items table would represent all selected items including linked items that weren't explicitly specified in the function call. Of course, we would want a function for getting the currently selected items as well:
- table GetSelectedTimelineItems()
RationaleThese additions would enable programmatic navigation of the timeline, for example you could create a search function for subtitles and display the search results in a window. Clicking each result would take the user to the correct position on the timeline and select the subtitle, displaying its settings in the Inspector.