Skip to content

Instantly share code, notes, and snippets.

@zeffii
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/51095b558636635d788b to your computer and use it in GitHub Desktop.
Save zeffii/51095b558636635d788b to your computer and use it in GitHub Desktop.
# PKHG points out in the comments that there are more convenient ways to do this
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.object.select_by_type(type='MESH')
bpy.ops.object.delete(use_global=False)
for item in bpy.data.meshes:
bpy.data.meshes.remove(item)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment