API create system folder/show file dialogue

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

Artur Piel

  • Posts: 11
  • Joined: Wed Jun 28, 2017 2:25 pm

API create system folder/show file dialogue

PostMon Jun 14, 2021 1:38 pm

Hi,

Building a script that among other things needs to export/import many Fusion Compositions.
this is nicely handled with just
ExportFusionComp() and ImportFusionComp()

However I'd need some control over where the files are beeng created. So ideally the script should create a new system folder to use as a path for those functions, potentially even delete files/folders if they are no longer needed. Or alternativelly (less desirable) open a system file select dialogue, where the user gets to create the folder manually, and the new location is returned back to the script. I've not yet found a way to get it done, any help much appreciated.

(writing in Lua)
Offline
User avatar

roger.magnusson

  • Posts: 3388
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: API create system folder/show file dialogue

PostMon Jun 14, 2021 2:41 pm

There's fu:RequestFile and fu:RequestDir.

I don't know of any official documentation but it's mentioned here:
https://www.steakunderwater.com/wesuckless/viewtopic.php?p=18553#p18553
Offline

Artur Piel

  • Posts: 11
  • Joined: Wed Jun 28, 2017 2:25 pm

Re: API create system folder/show file dialogue

PostTue Jun 15, 2021 9:18 pm

Thanks! Much appreciated! And it's a interesting thread to dig into over there.

Return to DaVinci Resolve

Who is online

Users browsing this forum: 00fabfab, Boosuf, Colourberry, Dilson Abraham, Håkan Mitts, panos_mts and 207 guests