- Posts: 19
- Joined: Tue May 02, 2017 6:28 pm
I'm trying to add new clips to the media storage in Resolve 16.2 & 17b7 using the Python API.
Appending any single video file is working without any problem. But appending an image sequence is not working.
My code is:
The problem persists in Windows and Linux and both in 16.2 and 17b7 versions of Resolve.
Appending any single video file is working without any problem. But appending an image sequence is not working.
My code is:
- Code: Select all
from anima.env import blackmagic # our own library for connecting to Resolve based on Blackmagic's own Python
resolve = blackmagic.get_resolve()
pm = resolve.GetProjectManager()
project = pm.GetCurrentProject()
media_storage = resolve.GetMediaStorage()
path = "/mnt/T/PROJECTS/BENI_COK_SEV/Sequences/BCS001/SCN001/Shots/BCS001_001_0830/Comp/Outputs/Main/v001/exr/BENI_COK_SEV_BCS001_001_0830_Comp_Main_v001.[000-019].exr"
media_storage.AddItemListToMediaPool(path)
# returns []
# and nothing is appended to the Media Bin
path1 = "/mnt/T/PROJECTS/BENI_COK_SEV/Sequences/BCS001/SCN001/Shots/BCS001_001_0830/Comp/Outputs/Main/v001/exr/BENI_COK_SEV_BCS001_001_0830_Comp_Main_v001.000.exr"
media_storage.AddItemListToMediaPool(path1)
# Doesn't raise any error in Python side
# but Resolve itself shows an error message with the following text
#
# Unable To Find Media
#
# DaVinci Resolve cannot find this media:
#
# /mnt/T/PROJECTS/BENI_COK_SEV/Sequences/BCS001/SCN001/Shots/BCS001_001_0830/Comp/Outputs/Main/v001/exr/BENI_COK_SEV_BCS001_001_0830_Comp_Main_v001.000.exr
# But if the only file in that folder is that single OpenEXR frame than it gets the item to the media storage
The problem persists in Windows and Linux and both in 16.2 and 17b7 versions of Resolve.