[x3d-public] Insights? PyJNIus and SceneObject in X3DJSAIL. Addition of Metadata to scene causes addChild to fail
John Carlson
yottzumm at gmail.com
Wed Mar 14 10:25:20 PDT 2018
There are 3 addChild methods in SceneObject.java in X3DJSAIL:
public SceneObject addChild(X3DChildNode newValue)
public SceneObject addChild(X3DMetadataObject newValue)
public SceneObject addChild(LayerSetObject newValue)
python x3domflowers.py
Traceback (most recent call last):
File "x3domflowers.py", line 40, in <module>
Scene7.addChild(NavigationInfo8)
File "jnius\jnius_export_class.pxi", line 906, in jnius.JavaMultipleMethod.__call__ (jnius\jnius.c:29116)
File "jnius\jnius_export_class.pxi", line 632, in jnius.JavaMethod.__call__ (jnius\jnius.c:25465)
File "jnius\jnius_conversion.pxi", line 68, in jnius.populate_args (jnius\jnius.c:8422)
File "jnius\jnius_utils.pxi", line 207, in jnius.check_assignable_from (jnius\jnius.c:5712)
jnius.JavaException: Invalid instance of 'org/web3d/x3d/jsail/Navigation/NavigationInfoObject' passed for a 'org/web3d/x3d/sai/Core/X3DMetadataObject'
I am wondering if we can make the second and third methods above addMetadata() and addLayerSet()?
Thanks!
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180314/29c9e490/attachment.html>
More information about the x3d-public
mailing list