I have to allow users of my addon to select a path via the directory browser window of blender.
The path is already set in an external ".conf" file, but I need it to be customizable via blender GUI, to avoid users to edit the config file manually.
I tried many things, (note that I'm a novice with the blender API), for example :
#(...) bpy.ops.buttons.directory_browse() # or col = layout.column() col.operator("file.directory") # or col.operator("buttons.directory_browse") # or col.prop(path, 'choose a folder') #(...)
But nothing works. And can't find a way to do this after a day of seeking.
What I want to achieve is something like this :
Note that the input could be pre-filled with the config file's default value.
Thanks by advance.