[x3d-public] HAnim, X3dToPython.xslt
John Carlson
yottzumm at gmail.com
Mon Dec 20 00:30:10 PST 2021
I'm having a bit of trouble converting over JinLOA4.x3d to runable
python, if someone wants to help.
I haven't been able to get any recent .new.x3d output either, from my
python generated code.
I think it's similar to list vs tuple problem before, this time, with
stiffness.
Oh, nevermind, I'm seeing updates. Merry Xmas!
python JinLOA4.py
x3d.py package loaded, have fun with X3D Graphics!
Traceback (most recent call last):
File
"/home/coderextreme/X3DJSONLD/src/main/python/net/x3djsonld/data/JinLOA4.py",
line 169, in <module>
HAnimJoint(DEF='hanim_l_tarsal_distal_interphalangeal_1',center=(2.761,0.539400,5.125),name='l_tarsal_distal_interphalangeal_1',s
tiffness=[0,0,0],
File
"/home/coderextreme/X3DJSONLD/src/main/python/net/x3djsonld/data/x3d.py",
line 43724, in __init__
self.stiffness = stiffness
File
"/home/coderextreme/X3DJSONLD/src/main/python/net/x3djsonld/data/x3d.py",
line 43873, in stiffness
assertValidSFVec3f(stiffness)
File
"/home/coderextreme/X3DJSONLD/src/main/python/net/x3djsonld/data/x3d.py",
line 3953, in assertValidSFVec3f
raise X3DTypeError(str(value)[:100] + ', type=' + str(type(value)) +
' is not a valid Python tuple for SFVec3f')
x3d.X3DTypeError: [0, 0, 0], type=<class 'list'> is not a valid Python
tuple for SFVec3f
python JinLOA4.py
x3d.py package loaded, have fun with X3D Graphics!
Traceback (most recent call last):
File
"/home/coderextreme/X3DJSONLD/src/main/python/net/x3djsonld/data/JinLOA4.py",
line 169, in <module>
HAnimJoint(DEF='hanim_l_tarsal_distal_interphalangeal_1',center=(2.761,0.539400,5.125),name='l_tarsal_distal_interphalangeal_1',s
tiffness=[0,0,0],
File
"/home/coderextreme/X3DJSONLD/src/main/python/net/x3djsonld/data/x3d.py",
line 35935, in __init__
self.stiffness = stiffness
File
"/home/coderextreme/X3DJSONLD/src/main/python/net/x3djsonld/data/x3d.py",
line 36084, in stiffness
assertValidSFVec3f(stiffness)
File
"/home/coderextreme/X3DJSONLD/src/main/python/net/x3djsonld/data/x3d.py",
line 3929, in assertValidSFVec3f
raise X3DTypeError(str(value)[:100] + ', type=' + str(type(value)) +
' is not a valid Python tuple for SFVec3f')
x3d.X3DTypeError: [0, 0, 0], type=<class 'list'> is not a valid Python
tuple for SFVec3f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211220/b55b8312/attachment-0001.html>
More information about the x3d-public
mailing list