[x3d-public] x3d.py error
Andreas Plesch
andreasplesch at gmail.com
Thu Apr 23 03:55:11 PDT 2020
When I try this:
inline=Inline(url=["Vent.x3d"])
toXML() generates an error:
inline.toXML()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-26-2e0e2ed2e4db> in <module>
----> 1 inline.toXML()
~/x3d.py in toXML(self, indentLevel)
22341 result += " load='" + str(self.load) + "'"
22342 if self.url != list():
> 22343 result += " url='" + self.url + "'"
22344 if self.visible != True:
22345 result += " visible='" + str(self.visible) + "'"
TypeError: can only concatenate str (not "list") to str
This is the x3d.py linked from the web3d web page.
Do I need to do something different?
-Andreas
--
Andreas Plesch
Waltham, MA 02453
More information about the x3d-public
mailing list