Attaching imagename to faces in 2.28

HI,

In 2.28 how do I attach an image to a face. The old way was to use face.addTexture(imagename), but this does not appear to work anymore.

I’m importing re-volt tracks into blender and can get all the rest of the mesh info in, just can’t work out how to attach the image info.


add face info vert index, uv vals etc...

tried
Newface.image.name = imagename
or
Newface.image.append(imagename)
or
Newface.addTexture( imagename)

then
Newmesh.faces.append(Newface)

Thanks Stephen

Very old way.
Try this :

HI,

Thanks for the info. I’d had a look on your site (very useful Blender resource), but hadn’t found that page.

Here is a pic of a Re-volt (Track editor made) track, where I have imported the meshes from the .W file into blender. The uv values are messed up a bit, I may need to invert some of the values.

Cheers Stephen

http://members.optusnet.com.au/~doughty/trackinblender.jpg