aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2015-01-07 11:31:24 +0100
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2015-01-07 11:31:24 +0100
commit6f68e2da92764305afb1f5ab57a7f4c370857d42 (patch)
tree2fee7fa41992cc15d26f43fe23251236f0715ef7
parent5012fd242b106c1dd20cd20e6007dc42e2140064 (diff)
downloadchimaera_mplek-6f68e2da92764305afb1f5ab57a7f4c370857d42.zip
chimaera_mplek-6f68e2da92764305afb1f5ab57a7f4c370857d42.tar.gz
chimaera_mplek-6f68e2da92764305afb1f5ab57a7f4c370857d42.tar.bz2
chimaera_mplek-6f68e2da92764305afb1f5ab57a7f4c370857d42.tar.xz
add commented command for STL output
-rw-r--r--mplek.py6
-rw-r--r--mstamp.py6
2 files changed, 10 insertions, 2 deletions
diff --git a/mplek.py b/mplek.py
index e78a9e0..91ca0b2 100644
--- a/mplek.py
+++ b/mplek.py
@@ -109,6 +109,10 @@ bpy.ops.transform.rotate(value=pi/4, axis=(0, 0, 1))
inner.select = False
bar.select = False
-# export to STL
+# export to Collada
bpy.ops.wm.collada_export(filepath=sys.argv[5], selected=True, apply_modifiers=True)
+
+# export to STL
+#bpy.ops.export_mesh.stl(filepath=sys.argv[5], check_existing=False, ascii=True, use_mesh_modifiers=True)
+
bpy.ops.wm.quit_blender()
diff --git a/mstamp.py b/mstamp.py
index 10729a5..87b896a 100644
--- a/mstamp.py
+++ b/mstamp.py
@@ -108,6 +108,10 @@ scn.objects.unlink(stamp)
scn.objects.unlink(bar)
scn.objects.unlink(base)
-# export to STL
+# export to Collada
bpy.ops.wm.collada_export(filepath=sys.argv[4], selected=True, apply_modifiers=True)
+
+# export to STL
+#bpy.ops.export_mesh.stl(filepath=sys.argv[4], check_existing=False, ascii=True, use_mesh_modifiers=True)
+
bpy.ops.wm.quit_blender()