<?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 Re: Multiple weight maps like skinCluster in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9536645#M5992</link>
    <description>&lt;P&gt;So I think that if I use a method like the&amp;nbsp;MFnWeightGeometryFilter.getWeights and setWeights that will work perfectly. Does that method just loop through the elements using the setLogicalIndex?&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 11:01:13 GMT</pubDate>
    <dc:creator>jmreinhart</dc:creator>
    <dc:date>2020-05-24T11:01:13Z</dc:date>
    <item>
      <title>Multiple weight maps like skinCluster</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9535998#M5991</link>
      <description>&lt;P&gt;I have a custom deformer that is working great. But I want it to have any array of weight maps like a blendshape or skinCluster node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen Chad Vernons example of this, but his deformer uses a doubleArray and mine uses a multiFloat. I don't think I can switch to using a doubleArray and use his method because my deformers behavior requires you to be able to choose which verts are the deformer set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct me if I am wrong but the doubleArray method requires you to deform all the vertices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also his method doesn't show the results of the painted weights until you change the paintIndex, which is quite annoying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The skinCluster node seems to be doing exactly what I need, but I have no idea how it does it internally,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 19:00:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9535998#M5991</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2020-05-23T19:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple weight maps like skinCluster</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9536645#M5992</link>
      <description>&lt;P&gt;So I think that if I use a method like the&amp;nbsp;MFnWeightGeometryFilter.getWeights and setWeights that will work perfectly. Does that method just loop through the elements using the setLogicalIndex?&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 11:01:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9536645#M5992</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2020-05-24T11:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple weight maps like skinCluster</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9536819#M5993</link>
      <description>&lt;P&gt;So I used that method and it definitely works, but I'm not satisfied with the speed. On a mesh with 10,000 verts it takes more than a full second to switch weightMaps, which is acceptable but if I use this method when I make the paintWeights interactively update it will be way too slow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I am using the MItGeometry to know how many components we need to copy weights for. If I could limit the copying to only the ones in the deformer set that would be phenomenal. But I don't know how I could use this MItGeometry method to get that, outside of the compute method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://download.autodesk.com/us/maya/2009help/API/class_m_it_geometry.html#761ed8374ef4123a96d69afbe097dbb8" target="_blank" rel="noopener"&gt;MItGeometry&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;A href="https://download.autodesk.com/us/maya/2009help/API/class_m_data_handle.html" target="_blank" rel="noopener"&gt;MDataHandle&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;amp;dataHandle, unsigned int groupId, bool readOnly=true,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://download.autodesk.com/us/maya/2009help/API/class_m_status.html" target="_blank" rel="noopener"&gt;MStatus&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;*ReturnStatus=NULL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 14:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9536819#M5993</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2020-05-24T14:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple weight maps like skinCluster</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9683095#M5994</link>
      <description>&lt;P&gt;So I came back to this after a few months and tried creating an&amp;nbsp;MItGeometry by using forceCache in the paintIndexChanged callback function. It just seems to cause a lot of problems, like crashing when I edit the deformer set even if the iterator isn't being used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this ILM writeup on skinning and the Maya API helpful, and made some of the changes it suggests elsewhere in my code to help with performance, but it didn't solve the main problem:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.spherevfx.com/downloads/Skinning%20in%20Maya%20at%20ILM.pdf" target="_blank"&gt;http://www.spherevfx.com/downloads/Skinning%20in%20Maya%20at%20ILM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like I'm at a dead end, I don't see how the skinCluster can do it so quickly. I really want to get this working because the deformer works fine it's just being able to paint on all the weight maps easily.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 17:01:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/multiple-weight-maps-like-skincluster/m-p/9683095#M5994</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2020-08-10T17:01:58Z</dc:date>
    </item>
  </channel>
</rss>

