How to create new curve with few points?

Hi,

I have problem with curve creating.
I have variables LocX, LocY, LocZ in loop and I want to add control points with this values.
Here is my code:


c = Curve.New()             # create new  curve data
cur = Scene.getCurrent()    # get current scene
ob = Object.New('Curve')    # make curve object
ob.link(c)                  # link curve data with this object
cur.link(ob)                # link object into scene

c.append(LocX, LocY, LocZ, 100)


I have error: AttributeError: append

How can I add this point?

OK, I got it. I forgot about appendNurb :slight_smile: