[x3d-public] Request for X3D encoding comment output from X3DPSAIL
John Carlson
yottzumm at gmail.com
Tue Dec 30 01:42:20 PST 2025
Don, thanks for your comment on this ticket that naively adding Comment to
a children field might not work. That was one of my intentions on
expressing myself so vocally. I apologize for using your time to do this,
but I think it revealed a possible design consideration. I think if I had
discovered it, it would have gone over like a wet balloon.
Thank you again, I will not put comments arbitrarily in the scenegraph for
now with my PythonSerializer.js, until you indicate it’s ready! I will
leave them out of the scenegraph, as they are now. Since I handle
comments generically, I will have to research the nodes you’ve accomplished.
Now, can we have other multi-line comments, not in the persistent
scenegraph, in Python translated from .x3d, in the short term, like:
#
# This is comment line 2
# This is comment line 3
#
?
John
>From the ticket:
“
This is not an easy fix for converting files because Comment is not part of
the content model for all nodes. Solving this will probably require
extending class _ X3DNode in x3d.py and sorting out possible subclass
collisions. It will also be difficult to retain the original order of child
nodes and child comments within a parent node.
This might be fixable someday - after some effort I got it working for
head, Scene, field, fieldValue.. Deferred as future work.
”
On Mon, Dec 29, 2025 at 12:52 PM Don Brutzman <don.brutzman at gmail.com>
wrote:
>
> I have posted a new ticket to capture this point. Perhaps a useful
> exemplar, as well.
>
> - X3D SourceForge ticket #82 creating persistent comments in python
> when converting from XML
> - https://sourceforge.net/p/x3d/tickets/82/
>
> Hope this helps. Again thanks for your many efforts. Have fun improving
> X3D! 🤔 👍
>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20251230/ce6eb50c/attachment.html>
More information about the x3d-public
mailing list