[x3d-public] testing x3d python jupyter notebook

Don Brutzman brutzman at nps.edu
Tue Apr 21 21:25:05 PDT 2020


[from long ago]

On 9/12/2019 12:04 PM, Andreas Plesch wrote:
> Hi Don,
> 
> great progress. I had a chance to try out the XML serialization. It
> starts to work:
> 
> https://github.com/andreasplesch/python-conda_pip/blob/master/index.ipynb
> 
> editable: https://mybinder.org/v2/gh/andreasplesch/python-conda_pip/master?filepath=index.ipynb
> 
> The particular issue is that the head statement is optional but the
> serializer assumes it exists:
> 
> https://www.web3d.org/x3d/content/X3dTooltips.html#head

Apologies for missing this message last fall.  Independently figured out and fixed the same issue tonight.

Modified x3d.py as follows,

    if self.head.hasChild():

got changed to

    if self.head and  if self.head.hasChild():

This fix will be in the next release.

> If fields and attributes such as DEF are treated the same, it
> presumably limits the ability the validate a scene. For example,
> routing a value to a DEF attribute may not be recognized as invalid.

No longer sure what that one is... if still a problem, please send example.  As always, thanks.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list