blender-3.4.1
import bpy
objs = [obj.name for obj in bpy.data.objects if obj.visible_get()]
print(objs)
active_object = bpy.data.objects["Cube"]
selected_objects = [
active_object,
bpy.data.objects["Cube.001"]
]
with bpy.context.temp_override(active_object=active_object, selected_objects=selected_objects):
bpy.ops.object.join()
output:
['Cube', 'Cube.001']
Warning: Active object is not a selected mesh
What did i do wrong?
selected_editable_objects
, notselected_objects
see blender.stackexchange.com/questions/248274/… $\endgroup$