I'm trying to convert a C++ plugin into Python
Here is my problem:
//the following line in C++ code. the outputCurves is an output attribute, the
//tpye is MFnNurbsCurveData::kNurbsCurve
MArrayDataHandle outputArray = data.outputArrayValue(outputCurves,
&stat);
My python code is like the following:
outputArray =
OpenMaya.MArrayDataHandle(data.outputArrayValue(volumeCurveNode.out_curves))
When debugging, it keeps give me the error: RuntimeError: (kInvalidParameter):
Data is not an array.
Does anyone know the problem ? What's the constructor of the MArrayDataHandle
function?
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.