Get material textures and put them in new material

I’m trying to make a utility widget to convert new materials that were created by importing several fbx meshes. I still want to use the textures imported but in a custom instance material.

For each material I want to get the available maps and put them in the appropriate slots in the instanced material.

The problem is that I haven’t found a way to get the maps. I got to the point where I can see what the maps are, even their name and path but I don’t understand how to convert that into the actual Texture sample Objects.

Please see the attached screen capture. This is how I’m getting the maps but I’m not sure what to do next. Any advice appreciated.

Guillermo Leal

Hello memo, I am facing a same problem as yours, hope u can find a satisfied answer.