Export/list the control points of a NURBS 30 minutes ago, I launched blender for the first time. I'm rather overwhelmed by the options, so I dare to ask this novice question.

I'd like to export the control points of a NURBS into a text file. If possible I'd prefer homogeneous coordinates.


For the start, I have created a path and modified it to look like a quadratic Bezier curve.
I've exported to different formats, but didn't find NURBS data in them (e.g. dae file contains lamp and camera, obj contains coordinates of the curve).



  How can I obtain the control points and knot vector?


I found this, but I'm not sure how to use it and if it could be helpful.
OBJ Format supports nurbs, but Blender writes them as edges by default (since many applications don't support them).

File -> Export -> Wavefront OBJ

Then in the options, enable Write Nurbs. This currently only supports Nurbs splines (not surfaces).



If for some reason you need to access different kinds of curve data, writing nurbs to a text file from Python isn't all that complicated.