-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripting: FilePicker for multiple files #3558
Comments
Since I opened this issue, #3777 has added documentation for However, I'm keeping this issue open because I think a multi-file file picker widget would still be nice to have. |
Hmm, I think the issue is that the widget is specifically designed to show a single file path, which can also be edited, in its built-in line edit. In all other places where this widget is used, selecting multiple files makes no sense. What should happen when the user is allowed to select multiple files?
|
I think "N files" would be fine, I imagine that's something people are used to. And rolling a custom label+button is an option for people who want something fancier. (FYI, commas are valid in filenames on Windows too.) |
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:
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.
The text was updated successfully, but these errors were encountered: