sirpalee
04-25-2008, 04:26 PM
Hi!
I tried something complelx, but it didn't worked (I couldn't output a nurbs curve shape for a nurbs curve based deformer, what works perfectly), so I tried te simplest thing, getting an input curve, deform it, than output it. It didn't worked, so I tried even a more simple, output the same curve, that I get as an input, and connect it to an other curve's create property, to see it (I moved the transform nodes of course), but I see nothing.
Here's the code in short.
MObject in_curve = data.inputValue(skinCurveNode::input_curve).asNurbsCurve();
MDataHandle out_curve = data.outputValue(skinCurveNode::output_curve);
MFnNurbsCurveData curve_data;
MObject curve_object = curve_data.create();
MFnNurbsCurve nurbs_curve;
nurbs_curve.copy(in_curve, curve_object);
nurbs_curve.setObject(curve_object);
nurbs_curve.updateCurve();
out_curve.set(curve_object);
I tried something complelx, but it didn't worked (I couldn't output a nurbs curve shape for a nurbs curve based deformer, what works perfectly), so I tried te simplest thing, getting an input curve, deform it, than output it. It didn't worked, so I tried even a more simple, output the same curve, that I get as an input, and connect it to an other curve's create property, to see it (I moved the transform nodes of course), but I see nothing.
Here's the code in short.
MObject in_curve = data.inputValue(skinCurveNode::input_curve).asNurbsCurve();
MDataHandle out_curve = data.outputValue(skinCurveNode::output_curve);
MFnNurbsCurveData curve_data;
MObject curve_object = curve_data.create();
MFnNurbsCurve nurbs_curve;
nurbs_curve.copy(in_curve, curve_object);
nurbs_curve.setObject(curve_object);
nurbs_curve.updateCurve();
out_curve.set(curve_object);
