Hi thsorensen,
Actually, with the current version of Moi (V3), there's no way to programmatically access the control points of a curve, in order to select them.
But, it's possible to manually follow some steps to achieve the same result :
1) Deselect everything
2) Select the curve
3) Isolate the curve so it will be the only visible object in the viewports.
You can isolate the curve by running this command in the command prompt area : script:moi.geometryDatabase.isolate();
4) Run the 'showpoints' command in order to show the control points of the curve
5) Select ALL (Ctrl-A)
6) Deselect the curve by clicking once on it
7) Copy via Ctrl-C all the control points
8) Hit ESC two times in order to deselect everything and hide the control points
9) Paste via Ctrl-V and get a bunch of point objects representing the original control points
10) Now you can operate on these points in order to select them and use them to create a new curve.
P.S. I'm writing a stable version of some Utility Nodes for the NodeEditor in order to do that kind of things automatically.
Nice day,
- Marco (mkdm)
|