I am currently trying to write a python script for getting the controllpoints of a Bezier curve. I want to use this points in a game, so I can reconstruct the curve there.
Getting points with a python script is easy, but the only thing I can get are two (or more) points on the curve itself - this is not what I want. A Bezier-curve is defined by controlpoints where only start- and endpoint lie on a curve, and at least one point should be outside of it. Those points also make up the convex hull of the curve.
So my main question is: How can I get the "real" controlpoints of the curve? (Not only the ones with the handles, which lie on a curve).
Additional question: I can get those points from a NURBS-Curve, but can I make a NURBS curve behave like a bezier curve? (When I click the "Bezier"-Checkbox in the "Active-Spline" panel, it doesn't look to me like a proper Bezier curve, as the endpoints don't lie on the curve.
Edit
For clarification, what I would prefer to use is a Bezier curve. What I want for that curve, is 4 control points like the NURBS curve has (= the 4 points of the orange bounding polygon as seen in the NURBS-picture). (How) can I get those points for a Bezier-curve in blender?