3 class MspMathObjectProperties(bpy.types.Panel):
4 bl_idname = "OBJECT_PT_mspmath_properties"
5 bl_label = "Msp math properties"
6 bl_space_type = "PROPERTIES"
7 bl_region_type = "WINDOW"
10 def draw(self, context):
11 obj = context.active_object
13 self.layout.prop(obj, "shape_type");
15 def register_properties():
16 bpy.types.Object.shape_type = bpy.props.EnumProperty(name="Shape type", description="Type of shape to use for exporting this object", default="AUTO",
17 items=(("AUTO", "Automatic", "Automatic"),
18 ("BOX", "Box", "Box"),
19 ("SPHERE", "Sphere", "Sphere")))