0

I want to make list of scenes, and found blender list ui using template_list from How to compile template_list with some object in scene 2.8.

I think it would be possible writing like..

col.template_list("CUSTOM_UL_List","",bpy.data,"scenes",bpy.data,"...")

I don't know how to use "active_..._index" from that UIList panel.

Many Thanks

Youdi
  • 65
  • 6

1 Answers1

0

To make a list of all the scenes in your .blend file (assuming that is what you actually meant in your question, which is a little vague)

scenes = []
for scene in bpy.data.scenes:
    scenes.append(scene)
Psyonic
  • 2,319
  • 8
  • 13
  • well, I want to make UI displaying scenes in my .blend file, not just python console :( – Youdi Sep 04 '22 at 04:28