2

How do i assign UV coordinates to a procedurally generated mesh. All the examples in the blender wiki cover versions of blender older than 2.7.

In example the snippet

def createTextureLayer(name, me, texFaces):
        uvtex = me.uv_textures.new()
        uvtex.name = name
        for n,tf in enumerate(texFaces):
            datum = uvtex.data[n]
            datum.uv1 = tf[0]
            datum.uv2 = tf[1]
            datum.uv3 = tf[2]
        return uvtex

results in

AttributeError: 'MeshTexturePoly' object has no attribute 'uv1'

What should I do?

pink vertex
  • 9,896
  • 1
  • 25
  • 44
Vlad Kisly
  • 141
  • 3

0 Answers0