how to close a curve?

hi everybody!

I’ve got some problems with making nurbs curves closed in a script
I think i have to write a test for my curves with “.isCyclic” but I don’t really know how to write it:(.

Anybody knows the way to do it?:eyebrowlift: