how to export uvmap

Hi there,

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

Thanks

coul you be a little bit more specific?

Hi,

I am able to export the mesh from a Python script like this one:
http://www.blender.org/forum/viewtopic.php?t=22587&sid=d63c44d16551c7b0fc5c42bfb96f8fc5

But I too get:
>>> bpy.context.active_object.data.uv_textures.active.data[0].uv1
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:
bpy.context.active_object.name

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.