Page 1 of 1

API create system folder/show file dialogue

PostPosted: Mon Jun 14, 2021 1:38 pm
by Artur Piel
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)

Re: API create system folder/show file dialogue

PostPosted: Mon Jun 14, 2021 2:41 pm
by roger.magnusson
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

Re: API create system folder/show file dialogue

PostPosted: Tue Jun 15, 2021 9:18 pm
by Artur Piel
Thanks! Much appreciated! And it's a interesting thread to dig into over there.