maya api can't access to doubleArray element from skinclusterFn.getWeights
MDoubleArray doubleArrayTemp;
skinClusterFn.getWeights(dagPath, vertexComp, inf_arrayTemp, doubleArrayTemp);
In the above code, will output weights to doubleArrayTemp, but access to the elements of doubleArrayTemp , maya will crash, this is a permission conflict, I can understand, but is there a way, do not access to the elements, also can compare two doubleArrayTemp (from getWeights() )is the same? for example:
skinClusterFn.getWeights(..., doubleArrayTemp1);
skinClusterFn.getWeights(..., doubleArrayTemp2);
if(doubleArrayTemp1 == doubleArrayTemp2)
Thanks for your help.
Link copied