Folder Select when writing addons
I was working on an addon for exporting multiple objects to separate files (in this particular case FBX), I got to the point where the actual save location needed to be selected, but the only option for a 'save dialog' is a file one, while most of the 'features' in Blender only require to select files, not having a folder select version of the same limits the possibilities for writing addons (like batch import/exporters)
1 Comment
We do have it.
In Blender, the UI works in tandem with the kind of data you use it for. You create a property of some sort, with a specific subtype, and the UI you make to access that property will adapt for that specific type and subtype of data.
In your case, to get a folder browser, you need to make a stringProperty of the DIR_PATH subtype.
Example:
More about it: