How to access per-face UV assignment via API In Blender 2.79, how can I find the per-face UV image associated with a given face? Essentially what I want to do is this (pseudocode):

for face in mesh:
  if face.uv_image == "some_image.png":
      do something
  else:
      do something_else
Found it. This code prints the name of the TexFace image for each face of the mesh:

import bpy

object = bpy.context.object
mesh = object.data

for face in mesh.uv_textures['UVMap'].data:
    print(face.image.name)