[X3D-Ecosystem] RawKee Update - Implemented a companion export script for x3d.py

John Carlson yottzumm at gmail.com
Wed Mar 5 09:49:34 PST 2025


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.


On Wed, Mar 5, 2025 at 10:57 AM Bergstrom, Aaron <aaron.bergstrom at und.edu>
wrote:

>
> if nType == "HAnimHumanoid":
>
> jIdx = -1
>
> sIdx = -1
>
> for idx in range(len(mNodeList)):
>
> if mNodeList[idx] == "joints":
>
> jIdx = idx
>
> elif mNodeList[idx] == "skeleton":
>
> sIdx = idx
>
> if sIdx != -1 and jIdx != -1:
>
> mNodeList[jIdx] = "skeleton"
>
> mNodeList[sIdx] = "joints"
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20250305/66effba4/attachment.html>


More information about the X3D-Ecosystem mailing list