import bpy from pathlib import Path file_path = Path("collection_bug.blend") bpy.ops.wm.open_mainfile(filepath=str(file_path.resolve())) for obj in bpy.data.objects: obj.hide_render = True print(bpy.app.version_string) print("Iteration 1:") for obj in bpy.data.collections["Collection 1"].all_objects: print(obj) print("\n\nIteration 2:") for obj in bpy.data.collections["Collection 1"].all_objects: print(obj) obj.hide_render = False