This should be an easy one that I’m just not getting. I want to put up a drop box with a list of scenes to select from. I’m thinking something like this but with scenes instead of objects.
import bpy class PropCollectionPanel(bpy.types.Panel): bl_label = "Property Collection Test" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" def draw(self, context): objects = context.scene.objects row = self.layout.row() row.prop(objects, "active") def register(): bpy.utils.register_class(PropCollectionPanel) def unregister(): bpy.utils.unregister_class(PropCollectionPanel) if __name__ == "__main__": register()
It’s pretty straight forward to get a drop down list of objects because object lists that you get from a scene have an “active” property you can use. I don’t know how you’d do that with a collection of scenes though. Any ideas?