Hi…,
my following script from last year is throwing this error in Blender 4.1: “# RuntimeError: Error: ViewLayer ‘View Layer’ does not contain object ‘Export.000’”.
if new_obj.rigid_body is not None:
bpy.context.view_layer.objects.active = bpy.data.objects.get( new_obj.name ) # RuntimeError: Error: ViewLayer 'View Layer' does not contain object 'Export.000'
bpy.ops.rigidbody.object_remove()
How to remove the rigidbody from my object?
Thanks
Michael