Importing ibls from scene.world A to scene.world B

Hey

So I’m trying to wrap my head around the import procedure. I have learned that .blend file is fairly “open” and I can see inside it. But I can’t figure out where I can find the data I need.

So the lights, well lights are easy. its just out_data.lights = in_data.lights. but how can I find specific texture coordinate/mapping/environment image etc etc nodes that build IBL surface of a world?

Say I have 4 nodes attached to each other with specific names, how can I import them in to my scene?

I was able to find them inside bpy.data.worlds[“xx”].node_tree.nodes() etc etc. But I can’t access that from within with bpy.data.libraries.load(path, link=link) as (data_from, data_to):

So I tried to import entire world, then delete it after copying the nodes but apparently I’m doing it wrong too.

link = False
path = "C:\\Users\\Master\\Desktop\\01_blend_2Mats.blend"
myW = []
with bpy.data.libraries.load(path, link=link) as (data_from, data_to):
    for w in data_from.worlds:
        if w == "World":
            myW.append(w)
    data_to.worlds = myW

print("le worlds : ",myW)

Any things?

TIA!

Ok this actually works, I had a type in the code above which I edited out for any1 that want to use it. :- )