[x3d-public] HAnim, X3dToPython.xslt X3dToJson.xslt Upgrade X3DUOM?

John Carlson yottzumm at gmail.com
Wed Dec 22 12:46:28 PST 2021


Here’s a better link:

https://www.web3d.org/documents/specifications/19774-1/V2.0/Architecture/ObjectInterfaces.html

Section 6.2

Thanks!

J

On Wed, Dec 22, 2021 at 2:43 PM John Carlson <yottzumm at gmail.com> wrote:

> I believe I checked the right standard, here:
>
> https://www.web3d.org/documents/specifications/19774-1/V2.0/index.html
>
>  And neither value or metadata is a field????
>
> Seems a bit strange.
>
> On Wed, Dec 22, 2021 at 2:20 PM John Carlson <yottzumm at gmail.com> wrote:
>
>> hoping to see value field added to HAnimHumanoid in X3DUOM, or some
>> notice that the package generating stylesheets are not up-to-date.
>>
>> Also, check to make sure stiffness is assigned the right data structure
>> (between list and tuple).   And no, iOS, I do not want “Tupperware” for the
>> second time.   We need more women mathematicians (sorry for any
>> stereotyping).  On that subject, I wonder what coordinate system crocheted
>> hats use?
>>
>> On Mon, Dec 20, 2021 at 3:17 AM John Carlson <yottzumm at gmail.com> wrote:
>>
>>> Okay, now I seem to be having a similar problem between my python
>>> serializer, X3dToPython.xslt, and probably other serialized stuff.  I
>>> couldn't figure out how to fix the stiffness issue in X3dToPython.xslt, but
>>> hand-editing saved that on this particular python file
>>> (python/net/x3djsonld/data/JinLOA4.py). Other JinLOA's still have lists
>>> with Don's generator.
>>>
>>> I believe the main change I am dealing with is metadata vs value
>>> containerFields.   See JSON diff below.  I'm not seeing relevant changes to
>>> X3D JSON schema 4.0.  Does something need to be upgraded in X3DUOM or X3D
>>> JSON schema?  I'm not seeing a value field in HAnimHumanoid.
>>>
>>> ~/X3DJSONLD/src/main/python/net/coderextreme/data$ python JinLOA4.py
>>> Traceback (most recent call last):
>>>  File
>>> "/home/coderextreme/X3DJSONLD/src/main/python/net/coderextreme/data/JinLOA4.py",
>>> line 148, in <module>
>>>    HAnimHumanoid23.setValue(MetadataSet24)
>>> AttributeError: 'org.web3d.x3d.jsail.HAnim.HAnimHumanoid' object has no
>>> attribute 'setValue'. Did you mean: 'setName'?
>>> ~/X3DJSONLD/src/main/python/net/x3djsonld/data$ 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 50, in <module>
>>>    HAnimHumanoid(DEF='hanim_JinLOA4',loa=4,name='JinLOA4',scale=(0.0225,0.0225,0.0225),version='2.0',
>>>
>>> TypeError: HAnimHumanoid.__init__() got an unexpected keyword argument
>>> 'value'
>>>
>>>
>>>
>>>
>>> ~/X3DJSONLD/src/main/data$ git diff JinLOA4.json
>>> diff --git a/src/main/data/JinLOA4.json b/src/main/data/JinLOA4.json
>>> index c970a652a..e1930f4cf 100644
>>> --- a/src/main/data/JinLOA4.json
>>> +++ b/src/main/data/JinLOA4.json
>>> @@ -78,7 +78,7 @@
>>>           },
>>>           {
>>>             "@name":"translated",
>>> -            "@content":"14 October 2021"
>>> +            "@content":"20 December 2021"
>>>           },
>>>           {
>>>             "@name":"generator",
>>> @@ -116,7 +116,7 @@
>>>               "@loa":4,
>>>               "@scale":[0.0225,0.0225,0.0225],
>>>               "@version":"2.0",
>>> -              "-metadata":
>>> +              "-value":[
>>>                 { "MetadataSet":
>>>                   {
>>>                     "@name":"HAnimHumanoid.info",
>>> @@ -160,7 +160,8 @@
>>>                       }
>>>                     ]
>>>                   }
>>> -                },
>>> +                }
>>> +              ],
>>>               "-skeleton":[
>>>                 { "HAnimJoint":
>>>                   {
>>>
>>> ===================
>>>
>>> Validating JSON against schema:
>>>
>>> ~/X3DJSONLD/src/main/schema$ node ~/x3dvalidate/x3dvalidate.js
>>> ../data/JinLOA4.json
>>> Loading schema
>>> Parsing schema
>>> Adding schema
>>> Schema 4.0 added
>>> Schema 4.0 compiled
>>> ================================================================================
>>>
>>> File: ../data/JinLOA4.json
>>> Error reading ../data/JinLOA4.json
>>> keyword: required
>>> instancePath: /X3D/Scene/-children/3/HAnimHumanoid
>>> message: must have required property @USE
>>> params: {"missingProperty":"@USE"}
>>> file: ../data/JinLOA4.json
>>> version: 4.0
>>>
>>> keyword: additionalProperties
>>> instancePath: /X3D/Scene/-children/3/HAnimHumanoid
>>> message: must NOT have additional properties
>>> params: {"additionalProperty":"-value"}
>>> file: ../data/JinLOA4.json
>>> version: 4.0
>>>
>>> keyword: oneOf
>>> instancePath: /X3D/Scene/-children/3/HAnimHumanoid
>>> message: must match exactly one schema in "oneOf"
>>> params: {"passingSchemas":null}
>>> file: ../data/JinLOA4.json
>>> version: 4.0
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211222/78f31cec/attachment.html>


More information about the x3d-public mailing list