diff --git a/examples/scripts/blender/sdf_exporter.py b/examples/scripts/blender/sdf_exporter.py index cb74dc8dc4..00c5d2d358 100644 --- a/examples/scripts/blender/sdf_exporter.py +++ b/examples/scripts/blender/sdf_exporter.py @@ -18,6 +18,7 @@ def export_sdf(prefix_path): sdf_filename = 'model.sdf' model_config_filename = 'model.config' lightmap_filename = 'LightmapBaked.png' + model_name = 'model' # Exports the dae file and its associated textures bpy.ops.wm.collada_export(filepath=prefix_path+dae_filename, check_existing=False, filter_blender=False, filter_image=False, filter_movie=False, filter_python=False, filter_font=False, filter_sound=False, filter_text=False, filter_btx=False, filter_collada=True, filter_folder=True, filemode=8) @@ -157,15 +158,15 @@ def add_attenuation_tags(light_tag, blender_light): ############################## model = ET.Element('model') name = ET.SubElement(model, 'name') - name.text = "L1" + name.text = model_name version = ET.SubElement(model, 'version') version.text = "1.0" sdf_tag = ET.SubElement(model, "sdf", attrib={"sdf":"1.8"}) - sdf_tag.text = "model.sdf" + sdf_tag.text = sdf_filename author = ET.SubElement(model, 'author') name = ET.SubElement(author, 'name') - name.text = "Generated by blender sdf tools" + name.text = "Generated by blender SDF tools" xml_string = ET.tostring(model, encoding='unicode') reparsed = minidom.parseString(xml_string) diff --git a/tutorials/blender_sdf_exporter.md b/tutorials/blender_sdf_exporter.md index 386946d566..ad2f023e7f 100644 --- a/tutorials/blender_sdf_exporter.md +++ b/tutorials/blender_sdf_exporter.md @@ -1,7 +1,7 @@ \page blender_sdf_exporter Blender SDF Exporter -Blender is a DCC tool to create 3d models. In some cases you may be using it to bake -lighting and environment maps. +Blender is a Digital Content Creation (DCC) tool for working with 3d models. +In some cases you may be using it to bake lighting and environment maps. The Blender SDF exporter is a blender script in which you can run within Blender to export your meshes, their associated textures and lights to a dae file, its