how to export uvmap

Hi there,

I am trying to export the uv to be used in opengl?


coul you be a little bit more specific?


I am able to export the mesh from a Python script like this one:

But I too get:
Traceback (most recent call last):
File “<blender_console>”, line 1, in <module>
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0

in blender python-console check the values for this data-part.
start with something like:

what should printout in the console the name of the active object
and then go the tree of data down … and check if there are changes in the api.
Some things can be seen in the data-browser-window too.

btw. one way to reproduce this error is with an object without any uv-unwrap … in older blender-versions too.