In 2022 there was an answer to a question over at devtalk.blender.org about selecting multiple collections.
The answer was this code segment:
import bpy
# Set the area to the outliner
area = bpy.context.area
old_type = area.type
area.type = 'OUTLINER'
# some operations
ids = bpy.context.selected_ids
names = [o.name for o in ids]
print (names)
# Reset the area
area.type = old_type
As it seems, this has worked in the version what was current at that time but it doesn't work in 3.6 anymore. The list remains empty regardless of what is selected in the Outliner.
It was a very elegant solution to get more than one selected collection.
Can this be made working again in 3.6?
In the 3.6 documentation bpy.context.selected_ids
is listed under View_3D context. Does this mean that it is now only available in the View_3D area and no longer in the Outliner?