<div dir="auto">Just to be aware, if skeleton comes before joints, then this code would flip them.  You need to compare jIdx to sIdx before flipping them, AFAIK.  I realize that you’ve ordered them properly elsewhere.</div><div dir="auto"><br></div><div dir="auto"><br></div><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Mar 5, 2025 at 10:57 AM Bergstrom, Aaron <<a href="mailto:aaron.bergstrom@und.edu">aaron.bergstrom@und.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="m_3293845470660380336WordSection1">
<p class="MsoNormal"><br></p>
<p class="MsoNormal">if nType == "HAnimHumanoid":<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">jIdx = -1<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">sIdx = -1<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">for idx in range(len(mNodeList)):<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in">if mNodeList[idx] == "joints":<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.0in;text-indent:.5in">jIdx = idx<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in">elif mNodeList[idx] == "skeleton":<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.0in;text-indent:.5in">sIdx = idx<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in">if sIdx != -1 and jIdx != -1:<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.0in;text-indent:.5in">mNodeList[jIdx] = "skeleton"<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.0in;text-indent:.5in">mNodeList[sIdx] = "joints"<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><br></p></div></div></blockquote></div></div>