Hi probotix, it's not really simple to do that currently because the API does not currently expose the control points to script. But it is possible to do it in a kind of round about fashion by using clipboard copy/paste functionality since it is built in to the clipboard copy function that if points are turned on and all selected it will convert them into point objects in the clipboard.
There is a command here that does it that way:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9614.5
Also check out the SavePointFile script here:
http://kyticka.webzdarma.cz/3d/moi/#SavePointFile
Get the version of SavePointFile that works also with Mac OSX that is linked there, that's the one that uses the cross platform file handling which will work with v3 or v4. The original version of SavePointFile that uses an ActiveX object only works with MoI v2 I think.
One other thing to note is that the shape of a NURBS curve is not only defined by control point locations alone as a Bezier curve is. NURBS curves also have additional properties like a "knot vector", degree value, and weight values that also define the curve. When you draw a control point curve these additional properties are not used, so for that case just the control points do actually define the curve but if you obtain the curve through some other means like if it's a conic section then that is not the case anymore.
- Michael
|