Skip to content

Instantly share code, notes, and snippets.

@openroomxyz
Created April 21, 2020 12:45
Show Gist options
  • Select an option

  • Save openroomxyz/dad6f2fd1da01c2820d4db8ef07a06df to your computer and use it in GitHub Desktop.

Select an option

Save openroomxyz/dad6f2fd1da01c2820d4db8ef07a06df to your computer and use it in GitHub Desktop.
Blender Python : How do we give created object a name?
bpy.ops.mesh.primitive_cube_add(location=(0, 0, 0))
bpy.context.object.name = "Generated"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment