Last active
September 24, 2018 21:06
-
-
Save jedStevens/f58db1d0e5ed59c88e5e5ff13289e9d9 to your computer and use it in GitHub Desktop.
Export all objects in Blender as OBJs
This file contains 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 | |
def export_all_obj(exportFolder): | |
objects = bpy.data.objects | |
for object in objects: | |
bpy.ops.object.select_all(action='DESELECT') | |
object.select = True | |
exportName = exportFolder + object.name + '.obj' | |
bpy.ops.export_scene.obj(filepath=exportName, use_selection=True) | |
export_all_obj("/path/to/file") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment