Menu

#80 X3D file produces bad python

HAnim
wont-fix
None
2025-12-29
2025-12-09
No

Use X3dToPython.xslt on attached model and then try to run the python:

Comment out of place:

$ python JinLOA4.py
File "C:\Users\jcarl\X3DJSONLD\src\main\python\net\x3djsonld\data\JinLOA4.py", line 2267
<orientationinterpolator def="Stop_l_midtarsal_RotationInterpolator" key="0 0.5 1" keyvalue="0 0 1 0 0 0 1 0 0 0 1 0">
^
SyntaxError: invalid syntax</orientationinterpolator>

1 Attachments

Related

Tickets: #80

Discussion

  • John W Carlson

    John W Carlson - 2025-12-09
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -Use X3dToPython on attached model and then try to run the python:
    +Use X3dToPython.xslt on attached model and then try to run the python:
    
     Comment out of place:
    
     
  • John W Carlson

    John W Carlson - 2025-12-09
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,7 +2,7 @@
    
     Comment out of place:
    
    -ython JinLOA4.py
    +$ python JinLOA4.py
       File &#34;C:\Users\jcarl\X3DJSONLD\src\main\python\net\x3djsonld\data\JinLOA4.py&#34;, line 2267
         &lt;OrientationInterpolator DEF=&#39;Stop_l_midtarsal_RotationInterpolator&#39; key=&#39;0 0.5 1&#39; keyValue=&#39;0 0 1 0 0 0 1 0 0 0 1 0&#39;/&gt;
         ^
    
     
  • Don Brutzman

    Don Brutzman - 2025-12-29

    "orientationinterpolator" is not a legal node name and thus throws errors.

    Attaching file JinLOA4.x3d is not very helpful, since the current master version might get updated and is always part of the X3D Examples Archive at
    - https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4Index.html
    - https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4.x3d

    Working with existing shared example models is the best way to make improvements. Sometimes the issue is in the version-controlled scene, not the conversion software and not X3DJSAIL.

    When I run X3dToPython.xslt against the master version, it works.

    create python:
    C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.x3d processing with X3dToPython stylesheet...
    C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.py self-validation tests...
    validate python:
    x3d.py package 4.0.64.5 loaded, have fun with X3D Graphics!
    Self-test diagnostics for JinLOA4.py:
    meta information, info: This scene includes an EXPORT statement to simplify reuse of a large, complex HAnimHumanoid model by other X3D scenes. TODO: rescale all contained length values from inches to meters
    Python-to-XML well-formed XML document test of XML output complete
    Python-to-XML X3D 4.0 schema validation test of XML output complete
    Python-to-VRML export of VRML output successful
    Python-to-JSON export of JSON output successful (under development)
    python JinLOA4.py load and self-test diagnostics complete.

     
    • John W Carlson

      John W Carlson - 2025-12-29

      Don, it doesn’t help to look at the XML/HTML generated by sourceforge from
      the ticket, you have to look at the attached file.

      I believe this error was caused by converting a comment to a Python
      comment. I recommend using a comment class like you do in X3DJSAIL, so we
      can roundtrip comments.

      Thanks,

      John

      On Sun, Dec 28, 2025 at 10:35 PM Don Brutzman brutzman@users.sourceforge.net wrote:

      "orientationinterpolator" is not a legal node name and thus throws errors.

      Attaching file JinLOA4.x3d is not very helpful, since the current master
      version might get updated and is always part of the X3D Examples Archive at
      -
      https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4Index.html
      -
      https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4.x3d

      Working with existing shared example models is the best way to make
      improvements. Sometimes the issue is in the version-controlled scene, not
      the conversion software and not X3DJSAIL.

      When I run X3dToPython.xslt against the master version, it works.

      create python:
      C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.x3d
      processing with X3dToPython stylesheet...
      C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.py
      self-validation tests...
      validate python:
      x3d.py package 4.0.64.5 loaded, have fun with X3D Graphics!
      Self-test diagnostics for JinLOA4.py:
      meta information, info: This scene includes an EXPORT statement to
      simplify reuse of a large, complex HAnimHumanoid model by other X3D scenes.
      TODO: rescale all contained length values from inches to meters
      Python-to-XML well-formed XML document test of XML output complete
      Python-to-XML X3D 4.0 schema validation test of XML output complete
      Python-to-VRML export of VRML output successful
      Python-to-JSON export of JSON output successful (under development)
      python JinLOA4.py load and self-test diagnostics complete.


      [tickets:#80] https://sourceforge.net/p/x3d/tickets/80/ X3D file
      produces bad python

      Status: open
      Milestone: HAnim
      Created: Tue Dec 09, 2025 06:44 AM UTC by John W Carlson
      Last Updated: Tue Dec 09, 2025 07:07 AM UTC
      Owner: Don Brutzman
      Attachments:

      Use X3dToPython.xslt on attached model and then try to run the python:

      Comment out of place:

      $ python JinLOA4.py

      File
      "C:\Users\jcarl\X3DJSONLD\src\main\python\net\x3djsonld\data\JinLOA4.py",
      line 2267
      <orientationinterpolator def="Stop_l_midtarsal_RotationInterpolator" key="0 0.5 1" keyvalue="0 0 1 0 0 0 1 0 0 0 1 0">
      ^
      SyntaxError: invalid syntax</orientationinterpolator>


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/x3d/tickets/80/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #80

      • Don Brutzman

        Don Brutzman - 2025-12-29

        Off ticket: John, you are missing my point. My reply was clear, the
        authoritative JinLOA4.x3d and .py work.

        I am not debugging complicated examples that do not make immediate sense.

        This ticket will not get further attention. I have changed status
        from closed to wont-fix.

        You need to write simpler tickets, simpler test cases, and use X3D Example
        Archives wherever possible.

        Typical process progression:
        a. is the .x3d file valid,
        b. is the conversion by X3dtoPython.xslt stylesheet correct,
        c. does the x3d.py library correctly support the converted source code.

        Hope this repetition helps. Thanks for your efforts.

        all the best, Don

        X3D Graphics, Maritime Robotics, Distributed Simulation
        Relative Motion Consulting https://RelativeMotion.info

         

        Last edit: Don Brutzman 2026-02-02
    • John W Carlson

      John W Carlson - 2025-12-29

      The point is that “<orientationinterpolator” is not legal Python.

      If you fixed comments, that works for me.

      John

      On Sun, Dec 28, 2025 at 10:35 PM Don Brutzman brutzman@users.sourceforge.net wrote:

      "orientationinterpolator" is not a legal node name and thus throws errors.

      Attaching file JinLOA4.x3d is not very helpful, since the current master
      version might get updated and is always part of the X3D Examples Archive at
      -
      https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4Index.html
      -
      https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4.x3d

      Working with existing shared example models is the best way to make
      improvements. Sometimes the issue is in the version-controlled scene, not
      the conversion software and not X3DJSAIL.

      When I run X3dToPython.xslt against the master version, it works.

      create python:
      C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.x3d
      processing with X3dToPython stylesheet...
      C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.py
      self-validation tests...
      validate python:
      x3d.py package 4.0.64.5 loaded, have fun with X3D Graphics!
      Self-test diagnostics for JinLOA4.py:
      meta information, info: This scene includes an EXPORT statement to
      simplify reuse of a large, complex HAnimHumanoid model by other X3D scenes.
      TODO: rescale all contained length values from inches to meters
      Python-to-XML well-formed XML document test of XML output complete
      Python-to-XML X3D 4.0 schema validation test of XML output complete
      Python-to-VRML export of VRML output successful
      Python-to-JSON export of JSON output successful (under development)
      python JinLOA4.py load and self-test diagnostics complete.


      [tickets:#80] https://sourceforge.net/p/x3d/tickets/80/ X3D file
      produces bad python

      Status: open
      Milestone: HAnim
      Created: Tue Dec 09, 2025 06:44 AM UTC by John W Carlson
      Last Updated: Tue Dec 09, 2025 07:07 AM UTC
      Owner: Don Brutzman
      Attachments:

      Use X3dToPython.xslt on attached model and then try to run the python:

      Comment out of place:

      $ python JinLOA4.py

      File
      "C:\Users\jcarl\X3DJSONLD\src\main\python\net\x3djsonld\data\JinLOA4.py",
      line 2267
      <orientationinterpolator def="Stop_l_midtarsal_RotationInterpolator" key="0 0.5 1" keyvalue="0 0 1 0 0 0 1 0 0 0 1 0">
      ^
      SyntaxError: invalid syntax</orientationinterpolator>


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/x3d/tickets/80/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #80

    • John W Carlson

      John W Carlson - 2025-12-29

      A simple check for “orientationinterpolator” in the attached example
      doesn’t show any results, as I expected.

      So if you don’t actually check the files I attach, why should I even attach
      them????

      The reason to attach examples is to provide durability in error reporting,
      providing links doesn’t show the error.

      Many people on GitHub require attachments to issues, instead of links.

      I will continue providing links in hopes that you will look at them.

      I fully realize that NetBeans can be really crappy about opening recent
      files.

      John

      On Sun, Dec 28, 2025 at 10:35 PM Don Brutzman brutzman@users.sourceforge.net wrote:

      "orientationinterpolator" is not a legal node name and thus throws errors.

      Attaching file JinLOA4.x3d is not very helpful, since the current master
      version might get updated and is always part of the X3D Examples Archive at
      -
      https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4Index.html
      -
      https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4.x3d

      Working with existing shared example models is the best way to make
      improvements. Sometimes the issue is in the version-controlled scene, not
      the conversion software and not X3DJSAIL.

      When I run X3dToPython.xslt against the master version, it works.

      create python:
      C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.x3d
      processing with X3dToPython stylesheet...
      C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.py
      self-validation tests...
      validate python:
      x3d.py package 4.0.64.5 loaded, have fun with X3D Graphics!
      Self-test diagnostics for JinLOA4.py:
      meta information, info: This scene includes an EXPORT statement to
      simplify reuse of a large, complex HAnimHumanoid model by other X3D scenes.
      TODO: rescale all contained length values from inches to meters
      Python-to-XML well-formed XML document test of XML output complete
      Python-to-XML X3D 4.0 schema validation test of XML output complete
      Python-to-VRML export of VRML output successful
      Python-to-JSON export of JSON output successful (under development)
      python JinLOA4.py load and self-test diagnostics complete.


      [tickets:#80] https://sourceforge.net/p/x3d/tickets/80/ X3D file
      produces bad python

      Status: open
      Milestone: HAnim
      Created: Tue Dec 09, 2025 06:44 AM UTC by John W Carlson
      Last Updated: Tue Dec 09, 2025 07:07 AM UTC
      Owner: Don Brutzman
      Attachments:

      Use X3dToPython.xslt on attached model and then try to run the python:

      Comment out of place:

      $ python JinLOA4.py

      File
      "C:\Users\jcarl\X3DJSONLD\src\main\python\net\x3djsonld\data\JinLOA4.py",
      line 2267
      <orientationinterpolator def="Stop_l_midtarsal_RotationInterpolator" key="0 0.5 1" keyvalue="0 0 1 0 0 0 1 0 0 0 1 0">
      ^
      SyntaxError: invalid syntax</orientationinterpolator>


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/x3d/tickets/80/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #80

      • John W Carlson

        John W Carlson - 2025-12-29

        It’s also way too easy to go into an online example and remove a comment,
        invalidating any error report I have.

        So I will try to provide actual python and .x3d attachments, in addition to
        links. Then you can compare online stuff with my attachments. It’s
        natural for me to provide attachments, but if you provide ways to use
        stylesheets on links, I’ll go with that. I don’t actually know if X3DJSAIL
        takes links for conversions or validation.

        If you’re concerned about me putting strange nodes into .x3d that gets
        translated to Python somehow, then put checks in X3dToPython.xslt to limit
        the constructors being used in Python output. Then you can feel more
        confident in using .x3d files of unknown origin.

        If XSLT doesn’t provide that feature, that’s a good feature request or
        preprocessor feature.

        All’s good, Don. Happy New Year!

        Trust in God, and validate everything!

        I use this scripture in 1 John 4:1-3 as a form of validation:

        “Do you (the spirit) acknowledge Jesus Christ has come in the flesh?” Use
        spirit in a wide meaning, like team spirit or just a thought you have.

        I should use it more often. Obviously, one has to acknowledge it oneself
        for it to work. And I expect full positive affirmation before proceeding.

        If you have your own internal validator, what do you use? I’ve heard that
        some use Socrates.

        What I plan to do is add more node validation in X3DJSONLD.*, which I was
        avoiding by asking for JSON Schema, and relying on Java compilation by
        X3DJSAIL, but yeah, you have to trust your schema tools as well!

        One reason to translate JSON to DOM is to use DOM validation tools, which I
        would like to know more about on the web.

        BTW, there was abuse in my family and I fully acknowledge that.

        If you can’t trust openness, then the whole world will collapse.
        Strangely, the people who are open are the most suspect, apparently.

        I am familiar with “Loose lips sink ships.” My ship sunk 35 years ago,
        and I’m breathing water, no problem. But now people are dumping sewage
        into my water, so yes, I’m upset.

        BTW, there’s a great POSIX tool called diff, that is available with WSL2 on
        Windows 11. Highly recommended!

        I’m guessing there are also commercially available differencing tools.
        Probably there’s one in XMLSpy!

        John

        On Mon, Dec 29, 2025 at 12:42 AM John W Carlson yottzumm3@users.sourceforge.net wrote:

        A simple check for “orientationinterpolator” in the attached example
        doesn’t show any results, as I expected.

        So if you don’t actually check the files I attach, why should I even attach
        them????

        The reason to attach examples is to provide durability in error reporting,
        providing links doesn’t show the error.

        Many people on GitHub require attachments to issues, instead of links.

        I will continue providing links in hopes that you will look at them.

        I fully realize that NetBeans can be really crappy about opening recent
        files.

        John

        On Sun, Dec 28, 2025 at 10:35 PM Don Brutzman
        brutzman@users.sourceforge.net wrote:

        "orientationinterpolator" is not a legal node name and thus throws errors.

        Attaching file JinLOA4.x3d is not very helpful, since the current master
        version might get updated and is always part of the X3D Examples Archive at
        -

        https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4Index.html

        https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4.x3d

        Working with existing shared example models is the best way to make
        improvements. Sometimes the issue is in the version-controlled scene, not
        the conversion software and not X3DJSAIL.

        When I run X3dToPython.xslt against the master version, it works.

        create python:
        C:\x3d-code\www.web3d.org
        \x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.x3d
        processing with X3dToPython stylesheet...
        C:\x3d-code\www.web3d.org
        \x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.py
        self-validation tests...
        validate python:
        x3d.py package 4.0.64.5 loaded, have fun with X3D Graphics!
        Self-test diagnostics for JinLOA4.py:
        meta information, info: This scene includes an EXPORT statement to
        simplify reuse of a large, complex HAnimHumanoid model by other X3D scenes.
        TODO: rescale all contained length values from inches to meters
        Python-to-XML well-formed XML document test of XML output complete
        Python-to-XML X3D 4.0 schema validation test of XML output complete
        Python-to-VRML export of VRML output successful
        Python-to-JSON export of JSON output successful (under development)
        python JinLOA4.py load and self-test diagnostics complete.


        [tickets:#80] https://sourceforge.net/p/x3d/tickets/80/
        https://sourceforge.net/p/x3d/tickets/80/
        https://sourceforge.net/p/x3d/tickets/80/ X3D file produces bad python

        Status: open
        Milestone: HAnim
        Created: Tue Dec 09, 2025 06:44 AM UTC by John W Carlson
        Last Updated: Tue Dec 09, 2025 07:07 AM UTC
        Owner: Don Brutzman
        Attachments:

        Use X3dToPython.xslt on attached model and then try to run the python:

        Comment out of place:

        $ python JinLOA4.py

        File
        "C:\Users\jcarl\X3DJSONLD\src\main\python\net\x3djsonld\data\JinLOA4.py",
        line 2267
        <orientationinterpolator def="Stop_l_midtarsal_RotationInterpolator" key="0 0.5 1" keyvalue="0 0 1 0 0 0 1 0 0 0 1 0">
        ^
        SyntaxError: invalid syntax</orientationinterpolator>


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/x3d/tickets/80/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        [tickets:#80] https://sourceforge.net/p/x3d/tickets/80/ X3D file
        produces bad python

        Status: wont-fix
        Milestone: HAnim
        Created: Tue Dec 09, 2025 06:44 AM UTC by John W Carlson
        Last Updated: Mon Dec 29, 2025 06:41 AM UTC
        Owner: Don Brutzman
        Attachments:

        Use X3dToPython.xslt on attached model and then try to run the python:

        Comment out of place:

        $ python JinLOA4.py
        File
        "C:\Users\jcarl\X3DJSONLD\src\main\python\net\x3djsonld\data\JinLOA4.py",
        line 2267
        <orientationinterpolator def="Stop_l_midtarsal_RotationInterpolator" key="0 0.5 1" keyvalue="0 0 1 0 0 0 1 0 0 0 1 0">
        ^
        SyntaxError: invalid syntax</orientationinterpolator>


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/x3d/tickets/80/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Tickets: #80

  • Don Brutzman

    Don Brutzman - 2025-12-29
    • status: open --> closed
     
  • Don Brutzman

    Don Brutzman - 2025-12-29
    • status: closed --> wont-fix
     

Log in to post a comment.

MongoDB Logo MongoDB