Hi every one,
i'm working on a new node to achieve a curve with "relatives tangents" (like the maya spline muscle).
But i'm a bit perplexed about the processing of my output connexions...i mean, my first intention is to connect:
"myNode.outputCurve" (my geometry data) --> "curveShape1.create" (new curveShape Node).
But this is right ? The "create" attribut of a curveShape Node is a good choice for create my shape ?
OUTPUT CODE TANGENT CURVE NODE:
out = om.MDataHandle(dataBlock.outputValue(TangentCurveNode.outCurve))
dataCreator = om.MFnNurbsCurveData()
TangentCurveNode.outCrvData = dataCreator.create()
curveFn = om.MFnNurbsCurve()
TangentCurveNode.crv = curveFn.create(controlVertices, knotSeq, deg, om.MFnNurbsCurve.kOpen, False, False,TangentCurveNode.outCrvData)
out.set(TangentCurveNode.outCrvData)
Maybe a better way is to build directly my curve and update it ? I need some advice please, Thanks for reply.