When I list collections from blender I always get collections only from first scene. How to get collections from specific scene.
I use this code:
I know blender is context sensitive, but don't know how to change this scene in code. Scene two is active, but when I listed the collections from an add-on, then blender switch backs to scene one.