max_strip_len = bpy.props.IntProperty(name="Max strip length", description="Maximum length for a triangle strip", default=1024, min=4, max=16384)
optimize_cache = bpy.props.BoolProperty(name="Optimize cache", description="Optimize element order for vertex cache", default=True)
cache_size = bpy.props.IntProperty(name="Cache size", description="Simulated vertex cache size used in optimization", default=64, min=8, max=1024)
- compound = bpy.props.BoolProperty(name="Compound", description="Combine all selected objects into one for exporting", default=False)
def draw(self, context):
- col = self.layout.column()
- col.prop(self, "compound")
- self.general_col = col
-
- self.layout.separator()
+ self.general_col = self.layout.column()
col = self.layout.column()
col.label("Triangle strips")
filename_ext = ".object"
- external_tech = bpy.props.BoolProperty(name="External technique", description="Use an external technique specified in the object's properties", default=True)
-
textures = bpy.props.EnumProperty(name="Textures", description="Export textures", default="REF",
items=(("NONE", "None", "Ignore textures"),
("REF", "Referenced", "Reference external data"),
super().draw(context)
col = self.general_col
- col.prop(self, "external_tech")
col.prop(self, "export_lods")
col.prop(self, "textures")
+ col.separator()
- self.layout.separator();
+ self.layout.separator()
col = self.layout.column()
col.label("Files")
filename_ext = ".scene"
- external_tech = bpy.props.BoolProperty(name="External techniques", description="Use external techniques specified in objects' properties", default=True)
resource_collection = bpy.props.BoolProperty(name="Resource collection", description="Put resources to a single collection file", default=True)
def create_exporter(self):
bpy.types.INFO_MT_file_export.append(menu_func_export)
from .properties import register_properties
- register_properties();
+ register_properties()
def unregister():
bpy.utils.unregister_module(__name__)