Skip to content

Instantly share code, notes, and snippets.

@hiroakioishi
Last active August 29, 2015 14:20
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 hiroakioishi/4dc152a073b80fa1ae72 to your computer and use it in GitHub Desktop.
Save hiroakioishi/4dc152a073b80fa1ae72 to your computer and use it in GitHub Desktop.
[Blender:Python] すべてのオブジェクトを削除する
for item in bpy.context.scene.objects:
bpy.context.scene.objects.unlink(item)
for item in bpy.data.objects:
bpy.data.objects.remove(item)
for item in bpy.data.meshes:
bpy.data.meshes.remove(item)
for item in bpy.data.materials:
bpy.data.materials.remove(item)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment