I upgraded blender to version 4.0, but I can't use the code bpy.context.selected_ids in version 4.0. The console gives an error AttributeError: 'Context' object has no attribute 'selected_ids'.
Please help me, thank you guys.
import bpy
def ADD_HT_outliner(self, context):
print(bpy.context.selected_ids)
def register():
bpy.types.OUTLINER_HT_header.append(ADD_HT_outliner)
print(context.selected_ids)$\endgroup$print(context.selected_ids), the same error will still occur $\endgroup$