<div dir="auto">But probably the issue could have been I didn’t use a DEF in the in the initializer.</div><div dir="auto"><br></div><div dir="auto">John <br><div class="gmail_quote gmail_quote_container" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025 at 4:45 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Michalis, here’s a different approach I took, and hit a brick wall with all browsers.</div><div dir="auto"><br></div><div dir="auto">I did provide a simple initializer, which didn’t appear to change anything.</div><div dir="auto"><br></div><div dir="auto">John <br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">John Carlson</strong> <span dir="auto"><<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>></span><br>Date: Tue, Feb 4, 2025 at 12:56 AM<br>Subject: Re: Turning on and off simultaneous animations individually<br>To: Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>>, Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com" target="_blank">michalis.kambi@gmail.com</a>>, Holger Seelig <<a href="mailto:holger.seelig@yahoo.de" target="_blank">holger.seelig@yahoo.de</a>>, GPU Group <<a href="mailto:gpugroup@gmail.com" target="_blank">gpugroup@gmail.com</a>><br>CC: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>>, Joe D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>><br></div><br><br><div dir="ltr">Indeed, moving the TimeSensor  USE to a fieldValue makes Castle report this:<div><br></div><div>castle-model-converter: Warning: X3D: Route destination node name "clock" not found<br>castle-model-converter: Warning: X3D: Route destination node name "clock" not found<br>castle-model-converter: Warning: X3D: Route destination node name "clock" not found</div><div><br></div><div><br></div><div>Seems like I've made a full circle.  Now I can't get anything to work.</div><div><br></div><div>So option B) sounds really good, and I'll just recommend Sunrize, or do scripting.</div><div><br></div><div>What I can try to do is provide an initializer value to clock in ProtoInterface.</div><div><br></div><div>see attachment.</div></div><div dir="ltr"><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 3, 2025 at 12:11 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I have no problems with your thinking Andreas.  My only questions are 1) Why am I chosen to find these corner cases? 2)  Can Castle Model Viewer support ECMAScript soon, perhaps in an Electron or better WebView? 3) It would seem like ProtoInterface field accessType="outputOnly" needs to be treated specially.</div><div><br></div><div>Primarily, I am concerned that A) alone will not solve 3) above and B) may be required.  Castle Model Viewer already has A), which is helpful, but I don't have a workaround yet.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 2, 2025 at 10:40 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Apologies in advance if the following comes across as a bit of rigid thinking for a corner case but unfortunately there is now an example. </div><div>A larger standard question is how to correctly process a fieldValue statement with a default value for the value attribute.</div><div>The XML schema for fieldValue says that the default value for the value attribute is "", the empty string. Relying on that default is rarely, perhaps never, a useful use of fieldValue but is allowed.</div><div><br></div><div>Scenario A)</div><div>In the case the field for which such a fieldValue is given is of type SFTime, this would strictly mean that the value is invalid since the "" is not an encoding of a floating point number and does not pass the regex test. Therefore processing could become undefined and should be halted.</div><div><br></div><div>Scenario B)</div><div>Another, perhaps less strict but more useful interpretation is that the empty string for SFTime signals the lack of a value and that therefore a default value for the SFTime field should be adopted. This default could be an initial -1 as the Tooltips suggest, and would likely be overwritten.</div><div><br></div><div>A) is stricter and follows the rules more literally. B) is perhaps more often what authors intend but may need some clarification in the specification.</div><div><br></div><div>This applies only to the XML encoding.</div><div><br></div><div>I think the XML encoding for fieldValue should require one of: an existing value attribute, or at least one child node (as a XFNode value). Not sure if the XML schema could handle that.</div><div><br></div><div>Would you prefer A) or B) ? </div><div><br></div><div>Personally A) with some error messages but some X3D browsers accept B).</div><div><br></div><div>Thanks, Andreas</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 2, 2025 at 4:58 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I think x3dom, reasonably, expects a value for the fieldValue nodes:</div><div><br></div><div>For example:</div><div><br></div><fieldValue name="startTime" /><div><br></div><div>and others.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 2, 2025 at 5:42 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Andreas, Joe,</div><div><br></div><div>Reset Button, Reset_Clock added.</div><div><br></div><div>See attached zip for details, or visit link;</div><div><br></div><div><a href="https://create3000.github.io/x_ite/playground/?url=https://raw.githubusercontent.com/coderextreme/ci2had/refs/heads/main/resources/CleanedYouClocks.x3d" target="_blank">https://create3000.github.io/x_ite/playground/?url=https://raw.githubusercontent.com/coderextreme/ci2had/refs/heads/main/resources/CleanedYouClocks.x3d</a></div><div><br></div><div>For some reason, this link doesn't show the live scene?</div><div><br></div><div><a href="https://andreasplesch.github.io/Library/Viewer/index.html?url=https://raw.githubusercontent.com/coderextreme/ci2had/refs/heads/main/resources/CleanedYouClocks.x3d" target="_blank">https://andreasplesch.github.io/Library/Viewer/index.html?url=https://raw.githubusercontent.com/coderextreme/ci2had/refs/heads/main/resources/CleanedYouClocks.x3d</a></div><div><br></div><div>Puzzled, haven't researched it yet.  Looks good in Sunrize and X_ITE, will try FreeWRL next.</div><div><br></div><div>John</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</blockquote></div></div>
</blockquote></div>
</div></div>
</blockquote></div></div>