2 "name": "Msp math datafiles",
3 "author": "Mikko Rasa",
4 "location": "File > Export",
5 "description": "Export Msp math data",
6 "category": "Import-Export" }
10 for sub in "export_shape", "outfile", "properties":
12 imp.reload(locals()[sub])
15 from bpy_extras.io_utils import ExportHelper
17 class ExportMspMathShape(bpy.types.Operator, ExportHelper):
18 bl_idname = "export_mesh.mspmath_shape"
19 bl_label = "Export Msp math shape"
21 filename_ext = ".shape"
23 def execute(self, context):
24 from .export_shape import ShapeExporter
25 exporter = ShapeExporter()
26 exporter.export(context, self.filepath)
29 def menu_func_export(self, context):
30 self.layout.operator(ExportMspMathShape.bl_idname, text="Msp math shape")
32 from .properties import MspMathObjectProperties
35 bpy.utils.register_module(__name__)
37 bpy.types.INFO_MT_file_export.append(menu_func_export)
39 from .properties import register_properties
40 register_properties();
43 bpy.utils.unregister_module(__name__)
45 bpy.types.INFO_MT_file_export.remove(menu_func_export)
47 if __name__=="__main__":