<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
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;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Thanks, I used Example 1 but the example 2 serves my purpose to keep related things together. </p><p class=MsoNormal>I will try that. </p><p class=MsoNormal>Still wondering, where do I find this grammar or similar rule in the standard? </p><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:pdaehne@gmail.com">Patrick Dähne</a><br><b>Sent: </b>Thursday, January 5, 2023 11:04 AM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Brutzman, Donald (Don) (CIV)</a><br><b>Cc: </b><a href="mailto:joedwil@earthlink.net">Joseph D Williams</a>; <a href="mailto:michalis.kambi@gmail.com">Michalis Kamburelis</a>; <a href="mailto:x3d-public@web3d.org">X3D Public Mailing List (x3d-public@web3d.org)</a><br><b>Subject: </b>Re: [x3d-public] [...] HAnim2 X3D4 BoxMan update: does ClassicVRMLGrammar allows ROUTE in children?</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I did not want to start a big discussion here, I just wanted to explain why the given „BoxManJoeAnim.reworked.x3dv“ might not import correctly because the ROUTEs are inside an MFNode field which - according to the grammar - is not allowed. Below are three simple examples, the first two are valid, the third is invalid. „BoxManJoeAnim.reworked.x3dv“ corresponds to the third example.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bye,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Patrick</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>—</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Example 1 (valid, ROUTE at top level):</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Relevant grammar rules: x3dScene -> statements -> statement -> routeStatement</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>###</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Group {</p><p class=MsoNormal> children [</p><p class=MsoNormal> DEF ts TimeSensor { … }</p><p class=MsoNormal> DEF oi OrientationInterpolator { … }</p><p class=MsoNormal> ]</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>ROUTE ts.fraction_changed TO oi.set_fraction</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>###</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>—</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Example 2 (valid, ROUTE in node body):</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Relevant grammar rules: x3dScene -> statements -> statement -> nodeStatement -> node -> nodeBody -> nodeBodyElement -> routeStatement</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>###</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Group {</p><p class=MsoNormal> children [</p><p class=MsoNormal> DEF ts TimeSensor { … }</p><p class=MsoNormal> DEF oi OrientationInterpolator { … }</p><p class=MsoNormal> ]</p><p class=MsoNormal> ROUTE ts.fraction_changed TO oi.set_fraction</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>###</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>—</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Example 3 (*invalid*, ROUTE in MFNode field):</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Relevant grammar rules: x3dScene -> statements -> statement -> nodeStatement -> node -> nodeBody -> nodeBodyElement -> fieldValue -> mfnodeValue -> nodeStatements -> nodeStatement -> ???</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>###</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Group {</p><p class=MsoNormal> children [</p><p class=MsoNormal> DEF ts TimeSensor { … }</p><p class=MsoNormal> DEF oi OrientationInterpolator { … }</p><p class=MsoNormal> ROUTE ts.fraction_changed TO oi.set_fraction</p><p class=MsoNormal> ]</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>###</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>