我想使用目录浏览器。我正在使用ExportHelper
该类,但它会弹出一个文件浏览器。把它变成目录浏览器有什么特别的吗?
这是一些代码:
class ExampleExporter(bpy.types.Operator, ExportHelper):
"""My Mesh Exporter Script"""
bl_idname = "object.example_mesh_exporter"
bl_label = "Example Mesh Exporter"
bl_description = "Export all meshes from the scene into a directory"
bl_options = {'REGISTER'}
filename_ext = ".huhu" # I don’t even need that
sparse = BoolProperty (
name = "Sparse output"
, description = "Should the output file be sparse?"
, default = False
, )
def execute(self, context):
# do something with self.filepath
我不需要self.filepath
,我需要类似的东西self.directory.
。