Page 1 of 1

File Save and Restore in script plugin

Posted: Wed Feb 05, 2020 8:40 pm
by sandyg
Is it possible to pop a file save / open dialog in a plug in script? I'm pretty sure I have seen it in some of the examples but can't put my fingers on where I did. Basically want to save some data as JSON and restore later if needed but would like the user to be able to hit the scripts file save/open button and then catch the event of closing to grab file names for the JSON reader/writer.

This related to the crank trigger wheel plug in I did.

Examples always super helpful :P

Thanks
Sandy

Re: File Save and Restore in script plugin

Posted: Wed Feb 05, 2020 11:10 pm
by CVH
You could look at BlockListExport.js
Filedialog and textstream
Not quit persistent folder handling

Regards,
CVH