0
$\begingroup$

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

$\endgroup$

1 Answer 1

0
$\begingroup$

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)
$\endgroup$
1
  • $\begingroup$ well, I want to make UI displaying scenes in my .blend file, not just python console :( $\endgroup$
    – Youdi
    Sep 4, 2022 at 4:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .