hi there,
how can i get uv coordinates from face (bpy.context.active_object.data.faces)
greetz
hi there,
how can i get uv coordinates from face (bpy.context.active_object.data.faces)
greetz
let’s say, if you will get index of any face:
face_index = bpy.context.active_object.data.faces.active
or
face_index = bpy.context.active_object.data.faces[0].index #first face
then list of all uv in that face can be print this way:
for u,v in bpy.context.active_object.data.uv_textures.active.data[ face_index ].uv:
print ('%f %f' % (u,v))