Menu

#62 X3dToPython.xslt conversion of eric5.x3d: type error: HAnimHumanoid.__init__()

X3D4
open
None
2025-08-26
2025-08-24
No

I tried to convert the attached x3d to python, but the python has errors. The .x3d file passes X3D-Edit, except for some HAnim parent/child relationships.

x3d.py package 4.0.64.5 loaded, have fun with X3D Graphics!
Traceback (most recent call last):
File "C:\Users\jcarl\x3djsonld\src\main\python\net\x3djsonld\data\eric5.py", line 41, in <module>
HAnimHumanoid(DEF='Eric_hanim_LOA2',name='LOA2',bboxSize=(2.0,2.0,2.0),loa=2,version='2.0',
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skeleton=
^^^^^^^^^^
...<286 lines>...
ROUTE(fromField='fraction_changed',fromNode='WalkTimer',toField='set_fraction',toNode='expression10'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ROUTE(fromField='value_changed',fromNode='expression10',toField='set_rotation',toNode='Eric_hanim_r_elbow')
)],),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: HAnimHumanoid.init() got an unexpected keyword argument 'normal'</module>

1 Attachments

Discussion

  • John W Carlson

    John W Carlson - 2025-08-24

    Here's the python

     
  • Don Brutzman

    Don Brutzman - 2025-08-26
    • summary: Python produces by X3dToPython.xslt has errors --> X3dToPython.xslt conversion of eric5.x3d: type error: HAnimHumanoid.init()
     

Log in to post a comment.

MongoDB Logo MongoDB