Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python blender select object by name

bpy.data.objects['object_name'].select_set(True)
Comment

blender python select object by name

bpy.data.objects['OBJECT'].select = True
Comment

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
Comment

PREVIOUS NEXT
Code Example
Python :: how will you print space and stay on the same line in python 
Python :: n random numbers python 
Python :: how to add list item to text file python 
Python :: python datetime round to nearest hour 
Python :: numpy from csv 
Python :: print two digits after decimal python 
Python :: python append in specific position 
Python :: dictionary sort python 
Python :: Cool codes for Python 
Python :: create an array with same value python 
Python :: openpyxl read excel 
Python :: python string list to list 
Python :: edit json file python 
Python :: train test split stratify 
Python :: plt line of best fit 
Python :: add column as index pandas 
Python :: python pandas apply to one column 
Python :: subplot matplotlib set limits 
Python :: mysql config not found 
Python :: installing django celery beat pip 
Python :: get xpath of element selenium python 
Python :: add horizontal line plotly 
Python :: how to get variable from setings django 
Python :: python get current mouse position 
Python :: module pygame has no member 
Python :: interpoltaion search formula python 
Python :: python print range 
Python :: pandas read_csv random rows 
Python :: LookupError: unknown encoding: idna python 
Python :: strptime python decimal seconds 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =