PDA

View Full Version : Curve outputting problem in the cpp API


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);

sirpalee
04-26-2008, 11:40 AM
No problem anymore, I managed to solve it, I've put the attributeAffects command before I created the output attribute... It took me 2 days to figure it out :( .

CGTalk Moderation
04-26-2008, 11:40 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.