[x3d-public] need help with import
John Carlson
yottzumm at gmail.com
Mon Apr 22 23:25:07 PDT 2019
I thought he suggested
import X3DObject
I just don’t know how to do that in a hierarchy yet.
He doesn’t like from at all.
All the files are like 2 lines each.
John
Sent from Mail for Windows 10
From: Brutzman, Donald (Don) (CIV)
Sent: Tuesday, April 23, 2019 12:53 AM
To: John Carlson; Peitso, Loren (CIV)
Cc: X3D Graphics public mailing list
Subject: Re: need help with import
Yes this is a Loren question.
From prior email conversation and guidance from Loren, I think a good .py file starts with
from X3Dautoclass import *
X3D0 = X3D() \
.setProfile("Immersive") \
.setVersion("3.3") \
# [etc.]
On 4/22/2019 10:15 PM, John Carlson wrote:
> import classpath
>
> import org.web3d.x3d.jsail.Core.X3DObject as X3D
>
> The above doesn’t work. Message:
>
> $ python abox.future.py
>
> Traceback (most recent call last):
>
> File "abox.future.py", line 20, in <module>
>
> X3D0 = X3D() \
>
> TypeError: 'module' object is not callable
>
> $ cat org/web3d/x3d/jsail/Core/X3DObject.py
>
> from jnius import autoclass
>
> X3DObject = autoclass('org.web3d.x3d.jsail.Core.X3DObject')
>
> Suggestions?
>
> Thanks,
>
> John
>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190423/9097253b/attachment.html>
More information about the x3d-public
mailing list