Exporting mesh, but where are the UV textures coords ?

Hello the community,

I am currently writing an export script to the 3DM file format. The vertices are exported successfully but when I query for UV texture coordinates, the face.uv list is completly empty. The call to ‘haveFaceUV’ returns True, so I guess that uv coordinates exist but I can not find them. Where are they ? Why the face.uv list is empty ?
The object I modelize is a simple cube textured using an image file. I can get the original file name using a ‘getMaterials’ call, this is OK.
Does anyone has an idea on what is going on ?
Thanks a lot !

I just found what is going on ! In fact, while you do not display the UV face select mode, the UV coordinates are not computed, so they do not exist. Since you activate the UV face select mode, then UV coordinates are created. They can then be exported and are accessible through the face.uv list.
Thus, you may adjust the UV coordinates for a fine tune. The image file is also accessible through face.image.filename string.
That’s over !