[+] Exports

This commit is contained in:
Hykilpikonna
2023-03-15 20:40:26 -04:00
parent 5fc5fcd9aa
commit 97918628c7
63 changed files with 1784138 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import FreeCAD
import os.path
doc = FreeCAD.activeDocument()
base_filename = os.path.splitext(doc.FileName)[0]
for obj in doc.Objects:
if obj.ViewObject.Visibility:
filename = base_filename + "_" + obj.Label + ".stl"
obj.Shape.exportStl(filename)