How can I set the loaded world to be the active one?
I linked the World from other file using:
hdri_path = “//hdri.blend”
with bpy.data.libraries.load(hdri_path, link=link) as (data_from, data_to):
data_to.worlds = data_from.worlds
All that is missing now is loading that world into the active world slot.
That world is there in drop down menu but it is not assigned.
For the love of me I can’t find anything in blender API documentation which function does that.
Thanks in advance!