Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get object by name blender python

ob = bpy.context.scene.objects["Cube"]       # Get the object
bpy.ops.object.select_all(action='DESELECT') # Deselect all objects
bpy.context.view_layer.objects.active = ob   # Make the cube the active object 
ob.select_set(True)                          # Select the cube
Source by blender.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #object #blender #python
ADD COMMENT
Topic
Name
1+4 =