Problem with my export script (textures)


Is this correct?

out.write( 'Texture Co-ordinates:
' )
 for face in mesh.faces:
  out.write( '%f,%f,%f,%f,%f,%f#
' % (face.uv[0][0], face.uv[0][1], face.uv[1][0], face.uv[1][1], face.uv[2][0], face.uv[2][1],) )

It gives me whacked UV co-ords when I export a model and show it in DirectX. I would appreciate anyone who can tell me if this is the right way to export UV co-ords. Thanks so much, happy to post screenies and demos if folks would like them. Cheers;)