- resource_collection = bpy.props.BoolProperty(name="Resource collection", description="Put resources to a single collection file", default=True)
+ selected_only: bpy.props.BoolProperty(name="Selected objects only", description="Only export the selected objects", default=False)
+ visible_only: bpy.props.BoolProperty(name="Visible only", description="Only export objects in visible collections", default=True)
+ collection: bpy.props.BoolProperty(name="As a collection", description="Export the scene and all resources as a single collection file", default=False)
+ skip_existing: bpy.props.BoolProperty(name="Skip existing files", description="Skip resources that already exist as files", default=True)
+
+ def invoke(self, context, event):
+ self.filepath = context.scene.name+".scene"
+ return super().invoke(context, event)
+
+ def check(self, context):
+ ext_changed = self.set_extension(".mdc" if self.collection else ".scene")
+ super_result = super().check(context)
+ return ext_changed or super_result