Hello, simple one but im a bit slow with the api.
I have created a curve and now i just want to name it. How is this done with api?
import maya.OpenMaya as om
positions=[(1,2,3),(0,2,3),(2,3,4),(5,2,4)]
curveFn = om.MFnNurbsCurve()
arr = om.MPointArray()
for pos in positions:
arr.append(*pos)
obj = curveFn.createWithEditPoints(
arr,
3,
om.MFnNurbsCurve.kOpen,
False,
False,
True
)
thanks,
Sam
