How to export stills from timeline
I would like to export the stills "grabbed" from a timeline, but don't seem to be able to do so.
I'm using the following APIs for Python 3 and Resolve 19.1.0:
Timeline:
GalleryStillAlbum:
I track my own timeline object from its creation and acquire a reference to the "current" gallery still album. I use the same "stills" list object returned from the "grab" as the export argument. I'm checking all arguments and results of calls.
The Timeline:GrabAllStills always succeeds and the stills appear in the default Gallery Still Album called "Stills 1"
The Gallery Still Album:ExportStills mostly fails (not quite 100% of the time), but mostly the export function returns false and no stills appear in the folder path. Not sure why it succeeds when it does.
I'm using an external python application on a Mac running macOS 13.4.1 with Python 3 version 13.12.4 with Resolve 19.1.0.
Has anyone had any success trying to so something similar? Am I dealing with a race condition between grab and export or is there a Resolve setting that is not set properly for this to work?
I'm using the following APIs for Python 3 and Resolve 19.1.0:
Timeline:
GrabAllStills(stillFrameSource)
Return Type: [galleryStill]
Grabs stills from all the clips of the timeline at 'stillFrameSource' (1 - First frame, 2 - Middle frame). Returns the list of GalleryStill objects.
GalleryStillAlbum:
ExportStills([galleryStill], folderPath, filePrefix, format)
Return Type: Bool
Exports list of GalleryStill objects '[galleryStill]' to directory 'folderPath', with filename prefix 'filePrefix', using file format 'format' (supported formats: dpx, cin, tif, jpg, png, ppm, bmp, xpm).
I track my own timeline object from its creation and acquire a reference to the "current" gallery still album. I use the same "stills" list object returned from the "grab" as the export argument. I'm checking all arguments and results of calls.
The Timeline:GrabAllStills always succeeds and the stills appear in the default Gallery Still Album called "Stills 1"
The Gallery Still Album:ExportStills mostly fails (not quite 100% of the time), but mostly the export function returns false and no stills appear in the folder path. Not sure why it succeeds when it does.
I'm using an external python application on a Mac running macOS 13.4.1 with Python 3 version 13.12.4 with Resolve 19.1.0.
Has anyone had any success trying to so something similar? Am I dealing with a race condition between grab and export or is there a Resolve setting that is not set properly for this to work?