<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic maya api can't access to doubleArray element from skinclusterFn.getWeights in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-api-can-t-access-to-doublearray-element-from-skinclusterfn/m-p/11532840#M1698</link>
    <description>&lt;P&gt;MDoubleArray doubleArrayTemp;&lt;/P&gt;&lt;P&gt;skinClusterFn.getWeights(dagPath, vertexComp, inf_arrayTemp, &lt;STRONG&gt;doubleArrayTemp&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In the above code, will output&amp;nbsp;weights to doubleArrayTemp, but access to the elements of doubleArrayTemp , maya will crash, this is a permission conflict, I can understand, but&amp;nbsp; is&amp;nbsp; there a way, do not access to the elements, also can compare two &lt;SPAN class=""&gt;&lt;STRONG&gt;doubleArrayTemp (from&amp;nbsp;getWeights&lt;/STRONG&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&amp;nbsp;)&lt;/STRONG&gt;is the same? for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;skinClusterFn.getWeights(..., &lt;STRONG&gt;doubleArrayTemp1&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;skinClusterFn.getWeights(..., &lt;STRONG&gt;doubleArrayTemp2&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;if(doubleArrayTemp1 ==&amp;nbsp;doubleArrayTemp2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for your help.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Nov 2022 12:13:14 GMT</pubDate>
    <dc:creator>568278785</dc:creator>
    <dc:date>2022-11-05T12:13:14Z</dc:date>
    <item>
      <title>maya api can't access to doubleArray element from skinclusterFn.getWeights</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-api-can-t-access-to-doublearray-element-from-skinclusterfn/m-p/11532840#M1698</link>
      <description>&lt;P&gt;MDoubleArray doubleArrayTemp;&lt;/P&gt;&lt;P&gt;skinClusterFn.getWeights(dagPath, vertexComp, inf_arrayTemp, &lt;STRONG&gt;doubleArrayTemp&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In the above code, will output&amp;nbsp;weights to doubleArrayTemp, but access to the elements of doubleArrayTemp , maya will crash, this is a permission conflict, I can understand, but&amp;nbsp; is&amp;nbsp; there a way, do not access to the elements, also can compare two &lt;SPAN class=""&gt;&lt;STRONG&gt;doubleArrayTemp (from&amp;nbsp;getWeights&lt;/STRONG&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&amp;nbsp;)&lt;/STRONG&gt;is the same? for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;skinClusterFn.getWeights(..., &lt;STRONG&gt;doubleArrayTemp1&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;skinClusterFn.getWeights(..., &lt;STRONG&gt;doubleArrayTemp2&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;if(doubleArrayTemp1 ==&amp;nbsp;doubleArrayTemp2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for your help.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 12:13:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-api-can-t-access-to-doublearray-element-from-skinclusterfn/m-p/11532840#M1698</guid>
      <dc:creator>568278785</dc:creator>
      <dc:date>2022-11-05T12:13:14Z</dc:date>
    </item>
  </channel>
</rss>

