<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 12/6/21 00:29, John Carlson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1eb75cb9-e425-fd76-bc49-817a1982031d@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><br>
</p>
<div class="moz-cite-prefix">On 12/6/21 00:19, John Carlson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:012766b2-e959-4c60-cd8a-fe864220f4f5@gmail.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<p>Don, I will probably begin working on JSON export testing
after I take the JSON import example for a short spin. It's
good to get a code download.</p>
<p>Note that SFVec3f should put a tuple in the structure when
parsing JSON...normal JSON does not include tuples, so there
needs to be a type conversion.</p>
<p>That is, centerOfRotation and position in Viewpoint should be
tuples, not lists as JSON provides.</p>
</blockquote>
Fixed as far as I am concerned right now. I will try to remove my
tuple soon.<br>
</blockquote>
Tested removing tuple() without any problems.<br>
<blockquote type="cite"
cite="mid:1eb75cb9-e425-fd76-bc49-817a1982031d@gmail.com">
<blockquote type="cite"
cite="mid:012766b2-e959-4c60-cd8a-fe864220f4f5@gmail.com">
<p>I sent a previous message about HelloWorld.py and how the
fields might be converted to lists in the the constructor
call.</p>
</blockquote>
That has been done, AFAICT.<br>
</blockquote>
<p>SFVec3f field values converted to lists from tuples, to clarify.
Good work!</p>
<o:p></o:p>
<blockquote type="cite"
cite="mid:1eb75cb9-e425-fd76-bc49-817a1982031d@gmail.com">
<blockquote type="cite"
cite="mid:012766b2-e959-4c60-cd8a-fe864220f4f5@gmail.com">
<blockquote type="cite"
cite="mid:BY3PR13MB4884E578467EAE89565704AEC46D9@BY3PR13MB4884.namprd13.prod.outlook.com">
<div class="WordSection1">
<ul style="margin-top:0in" type="disc">
</ul>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John, please collect your comments and
examples regarding JSON export flaws. The
build.examples.log.txt file is a good place to start. Am
returning to work this week, finishing up everything not
yet done this year…<o:p></o:p></p>
</div>
</blockquote>
</blockquote>
</blockquote>
<p>I need to talk to you about making MF fields and nodes iterable.
Output fails in both JSON and XML output.</p>
<p>See traceback here:</p>
<p><br>
</p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">Traceback
(most recent call last):
</span><br>
File
"/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
line 141, in <module>
<br>
print(scene.JSON())
<br>
File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
line 12790, in JSON
<br>
result += str(self.head.JSON(indentLevel=indentLevel+1,
syntax=syntax))
<br>
File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
line 10792, in JSON
<br>
for each in self.children:
<br>
TypeError: 'JSON_MFNode' object is not iterable</span></p>
<p><span style="font-family:monospace"><br>
</span></p>
<p><span style="font-family:monospace">I'm hoping we can spend some
collaboration time working on these issues. Otherwise, I will
try to engage my python programmer to discuss options.</span></p>
<p><span style="font-family:monospace">Pretty much all my code has
been posted except for removing tuple().<br>
</span></p>
</body>
</html>