maya api can't access to doubleArray element from skinclusterFn.getWeights

568278785
Explorer
Explorer

maya api can't access to doubleArray element from skinclusterFn.getWeights

568278785
Explorer
Explorer

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.

0 Likes
Reply
197 Views
0 Replies
Replies (0)