How can I find out the name of a texture linked to an object?
Is there an image operator to find this out?
I searched in forums but wasn't able to find a working script, I tried this script:
import Blender
from Blender import*
img = ''
sel = bpy.context.object.name
if sel:
me = sel[0].getData(mesh=True)
for f in me.faces:
if f.image:
img = f.image.name
print (img)
But the code doesn't work in my python console with Blender 2.68.
How could we find what are all the images in an object and its name and path?