<div dir="ltr">Okay. I've applied the awk script to <div><br></div><div><a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3duomToX3dPythonPackage.xslt">x3d / Code / [r37479] /www.web3d.org/x3d/stylesheets/X3duomToX3dPythonPackage.xslt</a></div><div><br></div><div>And</div><div><br></div><div><a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/python/x3d.py">x3d / Code / [r37479] /www.web3d.org/x3d/stylesheets/python/x3d.py</a></div><div><br></div><div>Here are the diffs. If you need the modified x3d.py or stylesheet, let me know.</div><div><br></div><div>AFAICT, the awk scripts between the main branch and the kwargs branch were identical.</div><div><br></div><div>I'm going to pursue the containerField issue first, I don't know what's necessary to produce a x3d.py with kwargs in it. I've got something to sort the skeleton field first, that's my primary concern.</div><div><br></div><div>Thanks!</div><div><br></div><div>John</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Aug 25, 2025 at 10:15 AM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@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="ltr"><div>Here are my attempts to add containerField output:</div><div><br></div><div><a href="https://github.com/andreasplesch/x3d-python-mod/tree/main" target="_blank">https://github.com/andreasplesch/x3d-python-mod/tree/main</a></div><div><br></div><div>The awk script modifies x3d.py and is very brittle.</div><div><br></div><div>It looks like I chose an MIT license which essentially means no restrictions of any kind but happy to do whatever may be necessary.</div><div><br></div><div>This modifications will add a containerField attribute to all nodes (other than children?) which is probably considered too noisy. Perhaps there could be postprocessing to check for defaults.</div><div><br></div><div>Here is a cool live environment to play with x3d.py which includes the files:</div><div><br></div><div><a href="https://mybinder.org/v2/gh/spyder-ide/binder-environments/spyder-stable?urlpath=git-pull%3Frepo%3Dhttps%3A%2F%2Fgithub.com%2Fandreasplesch%2Fx3d-python-mod%26urlpath%3Ddesktop%26branch%3Dmain" target="_blank">https://mybinder.org/v2/gh/spyder-ide/binder-environments/spyder-stable?urlpath=git-pull%3Frepo%3Dhttps%3A%2F%2Fgithub.com%2Fandreasplesch%2Fx3d-python-mod%26urlpath%3Ddesktop%26branch%3Dmain</a></div><div><br></div><div>Just copy x3dcf.py into the test directory.</div><div><br></div><div>Separately, the kwargs branch also includes an effort to preserve node order from the python arguments in the xml output which is important for DEF/USE.</div><div><br></div><div>Cheers, -Andreas</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 25, 2025 at 2:15 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">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">I’m having major problems with having to hand edit X3D XML HAnim files output from x3d.py (X3DPSAIL) to that need to have containerField attributes for them to render.<div dir="auto"><br></div><div dir="auto">Sure, I could probably do a patch of the stylesheet, <div dir="auto"><a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3duomToX3dPythonPackage.xslt" target="_blank">https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3duomToX3dPythonPackage.xslt</a> following Andreas’ lead.</div><div dir="auto"><br></div><div dir="auto">But really we want these changes upstreamed. Can someone arrange with Andreas to license his code for inclusion in x3d.py?</div><div dir="auto"><br></div><div dir="auto">Meanwhile, I will probably choose to use VRML output, with my patch which converts the children field to the appropriate field: skin, joints, skeleton, etc.</div><div dir="auto"><br></div><div dir="auto">Bye, bye, XML. Hello, VRML.</div><div dir="auto"><br></div><div dir="auto">John </div></div>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</blockquote></div>