Hi! Does anybody know how to load a new image from disk in a defined image texture node?
Suppose, I have an image texture node called main image, and I want to change the loaded image with a new one that I load from disk.
I was able to reach the wanted node with the code, but when I need to place in the new image I can’t get the code to do so.
obj.material_slots.material.node_tree.nodes[“main image”]. and then?
suppose the image path is “C:\images\image2.jpg”