I'm trying to change the texture of an object by changing the .png texture image I'm loading from an external folder.
When using the Blender interface, all I need to do is going to the image tab in texture and open the file I want:
then
The changes are then operated automatically.
How would I go about to do the same in Python?
I have read other stackexchange answers to similar questions but I'm not sure to what extent they apply to my situation.



bpy.data.images['leaf1.png'].nameis the python. So you could set the name to "leaf2.png", then use that name to change the filepath. But what's in a name? – doakey3 Feb 16 '18 at 08:06