Does anyone know how to use the new append() and appendNurb() methods. I get them to work fine for creating nurbs curves (variables are a list of 4 floats). But when I try to add a “nurb” to a Curve object Blender crashes (I’m on OS X 10.3) with no console message. As you can see below I’ve tried several ways to input the 9 floats (Triplet) which is all the API says. Here’s my code…what am I doing wrong?
from Blender import Curve, Object, Scene, Window
branch = Curve.New()
curScene = Scene.getCurrent()
branchObj = Object.New('Curve')
branchObj.link(branch)
curScene.link(branchObj)
#branch.appendNurb([0,0,5,100]) #works
#branch[0].append([0,0,2,100]) #works
#branch[0].append([0,2,2,100]) #works
#branch[0].append([0,2,2,100]) #works
branch.appendNurb(0,0,0,0,0,5,0,0,0) #crashes
#branch.appendNurb([0,0,0,0,0,5,0,0,0]) #crashes
#branch.appendNurb([[0,0,0],[0,0,0],[0,0,0]]) #crashes
branch.update()
Window.Redraw()
thanks in advance for your help!