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.

  • $\begingroup$ Maybe bpy.data.scenes['Scene'].view_layers['View Layer'].layer_collection.children['Collection'] $\endgroup$ – lemon Aug 25 '19 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.