Skip to content

Instantly share code, notes, and snippets.

@roliveira
Created March 29, 2015 11:49
Show Gist options
  • Save roliveira/0c07127a5a06c6beb456 to your computer and use it in GitHub Desktop.
Save roliveira/0c07127a5a06c6beb456 to your computer and use it in GitHub Desktop.
Get rid of the `default` Cube present in Blender
import bpy
if "Cube" in bpy.data.objects.keys():
bpy.data.objects.get("Cube").select = True
bpy.ops.object.delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment