<div dir="ltr"><div dir="ltr">I found it easier in the short term to sort the fields in descending order of ascending order, so skeleton comes before joints. I didn't see a way to sort differently, but maybe I could do a sort including skeleton and then a sort excluding skeleton?<div><br></div><div>I was able to bring up X3DV without an issue in view3dscene. X3D XML still has issues with containerFields. See below.</div><div><br></div><div><div>tovrmlx3d: Warning: X3D: Unknown X3D field name (indicated by containerField value) "children" by node "HAnimJoint" inside node "HAnimHumanoid"</div><div>tovrmlx3d: Warning: X3D: Unknown X3D field name (indicated by containerField value) "children" by node "HAnimMotion" inside node "HAnimHumanoid"</div></div><div><br></div><div>"children" should be "skeleton", "joints" or "motions" for HAnimJoints or HAnimMotions (that's not clear, but oh well. If someone wants to discuss automatically overriding certain containerFields in XML, I'm game. I've faced the issue many times.</div><div><br></div><div>x3d-tidy does not report these, but does have an issue with meta copyright content missing (it's intentionally blank)</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 23, 2023 at 6:22 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">XSLT solution idea for HAnimHumanoid joints and skeleton fields order output from x3d.py, below. For the stylesheet that generates x3d.py</div><div dir="auto"><br></div><div dir="auto">Loop first time through HAnimHumanoid fields, only printing out skeleton field.</div><div dir="auto"><br></div><div dir="auto">Loop second time through fields, printing rest of fields, not skeleton field.</div><div dir="auto"><br></div><div dir="auto">I’m hoping only HAnimHumanoid has skeleton, but I think it should still work, just slower than one loop.</div><div dir="auto"><br></div><div dir="auto">Any suggestions besides this? I don’t have exact code, but I hope to implement this for a Blender plugin tonight. I’m tired of reordering x3d.py output.</div><div dir="auto"><br></div><div dir="auto">Are there any other nodes which require specific ordering while I’m working on this?</div><div dir="auto"><br></div><div dir="auto">I’m still thinking about generating python from x3d.py, but I need encoding input first. Anyone want to work on that? Hopefully it will be extremely useful for Blender plugin.</div><div dir="auto"><br><div dir="auto"><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/jsontoscene.py" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/jsontoscene.py</a></div></div>
</blockquote></div>