Created
September 16, 2016 09:44
-
-
Save kashimAstro/e30546826776cd16fbf09a77e47872a4 to your computer and use it in GitHub Desktop.
Blender export .STL separate mesh fracture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bpy | |
| import os | |
| path = bpy.path.abspath('/tecnici/dario/teststl/') | |
| if not os.path.exists(path): | |
| os.makedirs(path) | |
| for object in bpy.context.selected_objects: | |
| bpy.ops.object.select_all(action='DESELECT') | |
| object.select = True | |
| fPath = str((path + object.name + '.stl')) | |
| bpy.ops.export_mesh.stl(filepath=fPath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment