Closed CarstenHoyer closed 1 year ago
Here is a workaround:
bpy.ops.object.select_all(action='SELECT')
for obj in bpy.context.selected_objects:
if obj.type == 'MESH':
bpy.data.meshes.remove(obj.data)
bpy.data.objects.remove(obj)
I am closing this issue. This was resolved with this commit https://github.com/JacquesLucke/blender_vscode/commit/621e275d9000e571f4b4d10cbde7abdd1cf15e0a
This simple script works from Blender (selects everything, deletes everything, inserts a camera), but fails from VS code - in the sense that it does select everything, and it also inserts a camera, but it doesn't perform the delete operation.