Do you want to work on this issue?
You can request for a bounty in order to promote it!
Scripting: FilePicker for multiple files #3558
eishiya posted onGitHub
The FileEdit returned by Dialog.addFilePicker()
only allows selecting one file at a time. This means that if I want to prompt users for any number of files, I have to either let them add files one after the other using one filepicker, or give them a button to add as many FilePickers as they want, neither of these is convenient for the user.
It would be much more convenient for the user if I could give them a file dialog that lets them select multiple files. It would simplify the script, as well.
Example scriptable use cases that require an unknown number of files to be selected:
- Generate tilesets with the same settings from any number of tilesheet images (this was requested on Discord)
- Add multiple Image Layers quickly
- Merge multiple map files into one map (or into a World with custom auto-placement, if/when Worlds become exposed to scripting)
Tangential request: being able to select directories, not just files. This would be more convenient than selecting all the files in a directory, and combined with multi-file select, this would allow selecting all the files in several directories. It would also be more intuitive for scripts that want an output directory than the current approach of picking some file in that directory.