def execute(self, context): if not self.properties.filepath: raise Exception('filename not set') settings = save_settings_export(self.properties) filepath = self.filepath if settings[constants.COMPRESSION] == constants.MSGPACK: filepath = '%s%s' % (filepath[:-4], constants.PACK) from io_three import exporter if settings[constants.SCENE]: exporter.export_scene(filepath, settings) else: exporter.export_geometry(filepath, settings) return {'FINISHED'}
def execute(self, context): """ :param context: """ if not self.properties.filepath: raise Exception("filename not set") settings = set_settings(self.properties) settings['addon_version'] = bl_info['version'] filepath = self.filepath if settings[constants.COMPRESSION] == constants.MSGPACK: filepath = "%s%s" % (filepath[:-4], constants.PACK) from io_three import exporter if settings[constants.SCENE]: exporter.export_scene(filepath, settings) else: exporter.export_geometry(filepath, settings) return {'FINISHED'}