Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

0 REPLIES 0
Reply
Message 1 of 1
568278785
173 Views, 0 Replies

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.

Labels (3)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report