<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>For example, if we see this:
<a class="moz-txt-link-freetext" href="https://www.kshell.com/pages/rosetta/rosetta_x3dom.html">https://www.kshell.com/pages/rosetta/rosetta_x3dom.html</a> copied
from another email, we see that there are *no* script
<field>s in the code.</p>
<p>Does the X3D4 standard eschew script <field>s? And instead
offer "onclick()" events?<br>
</p>
<p>Thanks!</p>
<p>John<br>
</p>
<div class="moz-cite-prefix">On 12/3/21 15:33, John Carlson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:4641CCF6-A5DB-4B51-BB0D-60C27BAC6908@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
<div dir="ltr"><br>
<blockquote type="cite">On Dec 3, 2021, at 1:53 PM, Joseph D
Williams <a class="moz-txt-link-rfc2396E" href="mailto:joedwil@earthlink.net"><joedwil@earthlink.net></a> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}.MsoChpDefault
{mso-style-type:export-only;}div.WordSection1
{page:WordSection1;}ol
{margin-bottom:0in;}ul
{margin-bottom:0in;}</style>
<div class="WordSection1">
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1">2. What
are the stumbling blocks to getting script fields into
the event model?</li>
</ul>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi John,</p>
<p class="MsoNormal">Scripts are completely involved in the
x3d sai event model. A script must receive an event to
begin execution and then it is like an ’external’ in that
when the script begins it essentially acts like a
beginUpdate and when it completes it essentially gets an
endUpdate and all outputs are sent with the same time
stamp as kicked off the script. Think of it as script is
like any other node that can receive and send events. Only
exception is, I think, that a script directOut does not
initiate a new cascade</p>
</div>
</div>
</blockquote>
<div><br>
</div>
Part of the thing to do is try script fields in X3DOM and see if
they work at all, and if they don’t, try to do a minimal amount of
debugging to see what might be done.
<div>I do not recall if Roy’s work on this is available still or
not.</div>
<div><br>
</div>
<div>
<div>
<blockquote type="cite">
<div dir="ltr">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1">3.
If scripts are transformed, how?<o:p></o:p></li>
</ul>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If it is ECMAScript then what do
you do? What can be done? Break it down into json like
any other node? For some reason I hope not.</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</blockquote>
<div><br>
</div>
Well, one could potentially replace field access with a node
attribute util get or set method. But this can get really
tricky, if not impossible to do in all cases. It would be
better to implement script field routes, if possible. See
above. If one could get script field routes into the HTML
standard, much, much better…<br>
<blockquote type="cite">
<div dir="ltr">
<div class="WordSection1">
<p class="MsoNormal">Joe </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div
style="mso-element:para-border-div;border:none;border-top:solid
#E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From:
</b><a href="mailto:yottzumm@gmail.com"
moz-do-not-send="true">John Carlson</a><br>
<b>Sent: </b>Tuesday, November 30, 2021 11:40 AM<br>
<b>To: </b><a href="mailto:x3d-public@web3d.org"
moz-do-not-send="true">X3D Graphics public mailing
list</a><br>
<b>Subject: </b>[x3d-public] X3D Scripting for
X3DOM w/o reading standard</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Information needed:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">1. Do scripts in proto bodies
get copied?</p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">2. What are the stumbling blocks
to getting script fields into the event model?</p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">3. If scripts are transformed,
how?</p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">4. What is the new event model
for X3D4?</p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">John</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</body>
</html>