World list script?

how do you list all the world set up ?

including finding the name for each world

can it be done with bpy.ops or and how ?

happy bl

so yes, it can be done through data. you’d find the name for each world the same way you’d interact with any other bpy_collection.

that part works

now is there a link where we can find more info ?


how to make a given world the active one

or how to delete one ?

happy bl

most of this information is right there in the python console’s autocomplete

but there’s also the API documentation if you prefer it on a webpage

To create world:

To change world: =['World.001']

To delete world:['World'])