from bpy_extras.io_utils import ExportHelper
class ExportMspGLBase(ExportHelper):
- show_progress: bpy.props.BoolProperty(name="Show progress", description="Display progress indicator while exporting", default=True)
-
def set_extension(self, ext):
ext_changed = (ext!=self.filename_ext)
if ext_changed:
class DataExporter:
def __init__(self):
- self.show_progress = True
self.collection = False
self.shared_resources = True
def export_to_file(self, context, out_fn):
from .util import Progress
- progress = Progress(self.show_progress and context)
+ progress = Progress(context)
objects = context.selected_objects
self.visible_only = True
self.collection = True
self.skip_existing = True
- self.show_progress = True
def export_to_file(self, context, out_fn):
from .util import Progress
- progress = Progress(self.show_progress and context)
+ progress = Progress(context)
from .scene import create_scene_from_current
scene = create_scene_from_current(context, selected_only=self.selected_only, visible_only=self.visible_only)