Hi community,
I am trying to access an array inside my deformer node. Until now I only tried to access single values but now it s an array and I m bumping into a problem.
// previous code to get to h_triangleVertices ...
MDataHandle h_triangleVertices = h_vertexInfluences.outputValue().child(a_triangleVertices);
MObject o_triangleVertices = h_triangleVertices.data();
MFnIntArrayData d_triangleVertices(o_triangleVertices, &status);
CHECK_MSTATUS_AND_RETURN_IT(status);
this status returns me an error : Argument is a NULL pointer
So I presume that “o_triangleVertices” is NULL but I can’t figure out why, I looked at some other examples and it sems that I am doing it the right way.
any idea ?