[X3D-Ecosystem] x3d.py. NavigationInfo.type and url fields.

John Carlson yottzumm at gmail.com
Thu Aug 7 00:13:58 PDT 2025


For Aaron:  Another notice on PythonSeriializer.js and x3d.py

PythonSerializer.js translates NavigationInfo.type to:

NavigationInfo8 = x3d.NavigationInfo()
NavigationInfo8.type = ["ANY","EXAMINE","WALK","FLY","LOOKAT"]

Which appears OK to me.

When I get X3D JSON output from x3d.py, I get:

    {
        "NavigationInfo":
        {
      {
        "@type":""ANY" "EXAMINE" "WALK" "FLY" "LOOKAT""
      }
    },


Which doesn't look right at all.

I pretty much know that X3D JSON output from x3d.py has been iffy.  I
wonder if Aaron has better output as X3D JSON with url fields especially.
Can any JSON generating Python be shared yet?  Maybe after SIGGRAPH and
Web3D Conference?

Python is attached,and original .x3d.as well as JSON output

Thanks for any additions to x3d.py!

I am looking at the GraalPySerializer.js and realizing I left some
semicolons in.  Retesting is going well, but apparently, I need to set up a
function or alias in bash to do things right.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20250807/9f5afc50/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubik.py
Type: text/x-python
Size: 6889 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20250807/9f5afc50/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubik.x3d
Type: model/x3d+xml
Size: 4616 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20250807/9f5afc50/attachment-0001.x3d>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubik.new.python.json
Type: application/json
Size: 7124 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20250807/9f5afc50/attachment-0001.json>


More information about the X3D-Ecosystem mailing list