DaVinci 17.2.1 build 12, Python API, MediaStorage

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

ilunga

  • Posts: 4
  • Joined: Mon Jun 07, 2021 9:55 am
  • Real Name: DIMA LUIBIMOB

DaVinci 17.2.1 build 12, Python API, MediaStorage

PostWed Jun 09, 2021 1:50 pm

Hi.
I found that at least 2 commands do not work in the MediaStorage module:
1. GetSubFolderList(folderPath)
2. GetFileList(folderPath)

None of these commands returned the existing contents of the specified directories.
The code in the screenshot:
Code: Select all
Py2>
root = os.path.abspath('\\omega\catsdogs\3_post\ep039\sh0206\out')
mediaStorage = resolve.GetMediaStorage()
subFolders = mediaStorage.GetSubFolderList(root)
print subFolders
[]

Py2>
folderPath = os.path.abspath('\\omega\catsdogs\3_post\ep039\sh0206\out\v002')
fileList = mediaStorage.GetFileList(folderPath)
print fileList
[]

P.S. it's too bad that the font size cannot be changed in the Сonsole.

I have identified the cause of the dysfunction of this commands. It don't understand network paths. The commands work fine on local paths only. This is very sad and strange given the specifics of the industry.
Attachments
DaVinci MediaStorage.png
DaVinci MediaStorage.png (181.75 KiB) Viewed 260 times

Return to DaVinci Resolve

Who is online

Users browsing this forum: bentheanimator, Heisenberg, Stephen Swaney, TORM3NTO and 381 guests