PDA

View Full Version : Best Way to create a curve?


Sbowling
11-04-2008, 06:38 AM
Just wondering if this is the best way to create and name a curve in VBscript, I can't seem to find anything else.


CreateCurve 1, 0, "(1,2,3),(4,5,6),(7,8,3)",FALSE, LinearNonInterpolated
SetValue LinearNonInterpolated & ".Name", "mycurve"

ThE_JacO
11-06-2008, 04:40 AM
nurbs curves have a set method that can populate the primitive for you.
It's one of the very few methods of that kind (creating geo basically) that surprisingly enough works in an operator too, so you can dynamically build curves and subcurves with it.
Beside being much more legible and faster than some other ways to do it.

It's filed under the methods of nurbscurveslist in the docs.

P.S.
Of course like any topological operations, if you use it from a run-once script it will have to be on a frozen curve primitive. In Op form that's obviously not necessary.

CGTalk Moderation
11-06-2008, 04:40 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.