Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

blender scripting set active ojbect

#make sure you are on version 3.0.1!
import bpy
def set_active_object(obj: bpy.types.Object) -> None:
    bpy.context.view_layer.objects.active = obj
 
PREVIOUS NEXT
Tagged: #blender #scripting #set #active #ojbect
ADD COMMENT
Topic
Name
9+4 =