Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python blender select object by name

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

blender python get selected object

import bpy 
sleobj = bpy.context.selected_objects
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 :: python list empty 
Python :: get pixel color pygame 
Python :: increase colorbar ticksize 
Python :: import sklearn.metrics from plot_confusion_matrix 
Python :: iterate through attributes of class python 
Python :: How to search where a character is in an array in python 
Python :: radio button pyqt 
Python :: python find all elements of substring in string 
Python :: python for loop even numbers 
Python :: python datetime day of year 
Python :: checking if a string is in alphabetical order in python 
Python :: change variable type python 
Python :: plt opacity hist 
Python :: how to play audio in python 
Python :: matplotlib logarithmic scale 
Python :: python for loop counter 
Python :: pandas apply function on two columns 
Python :: infix to postfix python code 
Python :: how to get current date and time in python 
Python :: construct contingency table from pandas 
Python :: how to unique list in python 
Python :: python list to string 
Python :: python turn off printing 
Python :: what is // in python 
Python :: python merge two dictionaries in a single expression 
Python :: how to load wav file with python 
Python :: python ternary 
Python :: install imgkit py 
Python :: flask flash not working 
Python :: plt.legend( 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =