I separate some selected vertices from an object with
bpy.ops.mesh.separate
Now Blender creates a new object with the separated vertices.
How can I retrieve the name of the newly created object through Python?
I separate some selected vertices from an object with
bpy.ops.mesh.separate
Now Blender creates a new object with the separated vertices.
How can I retrieve the name of the newly created object through Python?
if before the separate-action you only have the one object selected, this should work:
new_objs = [obj for obj in bpy.context.selected_objects if obj != bpy.context.object]