[X3D-Ecosystem] Fwd: RawKee Update - Implemented a companion export script for x3d.py
John Carlson
yottzumm at gmail.com
Wed Mar 5 10:44:09 PST 2025
There are three container fields for HAnimJoint, ‘skeleton’, ‘children’
(default) and ‘joints’. I don’t disagree with Joe.
Until tools ignore the joints field, it’s still with us.
John
On Wed, Mar 5, 2025 at 12:22 PM Joe D Williams <joedwil at earthlink.net>
wrote:
> Only the first Joint, root, has containerField 'skeleton'
>
> All other child Joints are containerField 'children'
>
>
>
> the keyword 'skeleton' is not a Node, it is a container, a type
>
>
>
> Classic
>
>
>
> skeleton [
> DEF Joe_HumanoidRoot ...Joint ...
>
> ]
>
>
>
> xml
>
> <Joint DEF='Joe_HumanoidRoot' ... containerField='skeleton'
>
>
> HAnimHumanoid is a node, not a type.
>
>
>
> Joe
>
>
>
> -----Original Message-----
> From: X3D Ecosystem public discussion <x3d-ecosystem at web3d.org>
> Sent: Mar 5, 2025 10:06 AM
> To: John Carlson <yottzumm at gmail.com>
> Cc: Bergstrom, Aaron <aaron.bergstrom at und.edu>, X3D Ecosystem public
> discussion <x3d-ecosystem at web3d.org>
> Subject: Re: [X3D-Ecosystem] RawKee Update - Implemented a companion
> export script for x3d.py
>
>
>
> I suppose I could do a quick check to see if the root node in the
> ‘skeleton’ field has DEF=’somestring’ defined. And if so, and only then
> perform the flip.
>
>
>
> That would make it more portable.
>
>
>
> *From:* John Carlson <yottzumm at gmail.com>
> *Sent:* Wednesday, March 5, 2025 11:50 AM
> *To:* Bergstrom, Aaron <aaron.bergstrom at und.edu>
> *Cc:* X3D Ecosystem public discussion <x3d-ecosystem at web3d.org>
> *Subject:* Re: [X3D-Ecosystem] RawKee Update - Implemented a companion
> export script for x3d.py
>
>
>
> 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/0ef486bf/attachment-0001.html>
More information about the X3D-Ecosystem
mailing list