[Bf-extensions-cvs] [abf3089c] master: Fix: comments in a xyz file can only be in line 2. A \n was removed.
Clemens Barth
noreply at git.blender.org
Sun Mar 17 20:39:24 CET 2019
Commit: abf3089c7ae8ba07b8fae8df15b0e86e80ea2a1b
Author: Clemens Barth
Date: Sun Mar 17 20:38:12 2019 +0100
Branches: master
https://developer.blender.org/rBACabf3089c7ae8ba07b8fae8df15b0e86e80ea2a1b
Fix: comments in a xyz file can only be in line 2. A \n was removed.
===================================================================
M io_mesh_xyz/export_xyz.py
===================================================================
diff --git a/io_mesh_xyz/export_xyz.py b/io_mesh_xyz/export_xyz.py
index eba9273c..00d28545 100644
--- a/io_mesh_xyz/export_xyz.py
+++ b/io_mesh_xyz/export_xyz.py
@@ -33,7 +33,7 @@ def export_xyz(obj_type, filepath_xyz):
counter = 0
for obj in bpy.context.selected_objects:
- if "Stick" in obj.name:
+ if "STICK" in obj.name.upper():
continue
if obj.type not in {'MESH', 'SURFACE', 'META'}:
@@ -55,7 +55,7 @@ def export_xyz(obj_type, filepath_xyz):
if len(obj.children) != 0:
for vertex in obj.data.vertices:
- location = obj.matrix_world*vertex.co
+ location = obj.matrix_world @ vertex.co
list_atoms.append(AtomsExport(name, location))
counter += 1
else:
@@ -68,8 +68,7 @@ def export_xyz(obj_type, filepath_xyz):
xyz_file_p.write("%d\n" % counter)
xyz_file_p.write("This XYZ file has been created with Blender "
"and the addon Atomic Blender - XYZ. "
- "For more details see: wiki.blender.org/index.php/"
- "Extensions:2.6/Py/Scripts/Import-Export/XYZ\n")
+ "For more details see the wiki pages of Blender.\n")
for i, atom in enumerate(list_atoms):
string = "%3s%15.5f%15.5f%15.5f\n" % (
More information about the Bf-extensions-cvs
mailing list