|
Would someone show me the path to start a custom nurbs curve exporter? I just need to know the list of “control vertexes” or “edit points” of the selected nurbs curve. These values would be later used as an animation path in my game.
I have never done mel or python in my life, but I have a strong c++ foundation.
Any help, link, would be very welcome.
|
|
|
|
Here are some starters, look in the MEL command reference and search for these commands:
curve
pointOnCurve
pointPosition
Also look at the “Sections” attribute on a nurbs curve as it should give you the number of cvs comprising the curve. Once you know how many cvs there are and the curve Degree, you should be able to loop over them and write out their positions in local or world space using pointOnCurve or pointPosition. You could then rebuild the curve using that data.
|
|
|