<div dir="auto">So here’s an interesting question:  If I have the same ROUTE in two different choices in a Switch, is one of them ignored?</div><div dir="auto"><br></div><div dir="auto">Not that I’m going to do that.</div><div dir="auto"><br></div><div dir="auto">I’m probably going to try using a Switch unless someone says that ROUTEs are always active in a Switch, disagreeing with the AI.</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 7, 2024 at 3:29 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><div><h3 style="font-size:25px;font-weight:bold;margin-top:14px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto">From X3D4:</h3><h3 style="font-size:25px;font-weight:bold;margin-top:14px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto"><br></h3><h3 style="font-size:25px;font-weight:bold;margin-top:14px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto">4.4.8.2 Routes<br></h3><p style="font-size:26px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto">Routes are not nodes.</p><p style="font-size:26px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto">[snip]</p><p style="font-size:26px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto">Redundant routing is ignored. If an X3D file repeats a routing path, the second and subsequent identical routes are ignored. This also applies for routes created dynamically using the X3D SAI.<br></p><p style="font-size:26px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto"><br></p><p style="font-size:26px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto">Can someone clarify how statements are affected by Switches?  Can I have different choices of a PROTO inside a Switch?  Effectively changing ProtoBody content at run-time???</p></div></div><div><div><p style="font-size:26px;color:rgb(0,0,0);font-family:'verdana','arial','helvetica',sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none" dir="auto">John</p></div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 7, 2024 at 2:40 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">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">Would it be possible to put an animation’s ROUTEs in a Switch that could be toggled on and off with a boolean toggle?</div><div dir="auto"><br></div><div dir="auto">Google AI says:</div><div dir="auto"><br></div><div dir="auto"><div><div><div><div style="margin:0px 0px 20px">Yes, you can absolutely put "ROUTE" nodes within a "Switch" node in X3D; in fact, it's a common practice to use them together to dynamically control which set of connections (via ROUTE) are active depending on which child node of the Switch is currently selected.<span style="white-space:nowrap"> <div style="margin-right:6px;vertical-align:middle"><div style="display:inline-block;vertical-align:middle;outline:0px"><div style="width:28px;outline:solid 1px;border-radius:9999px;margin:0px auto;height:20px;min-height:20px;background-color:transparent"><div style="width:28px;border-radius:9999px;height:20px"><span style="margin:0px;color:rgb(11,87,208)"><span style="display:inline-block;height:18px;line-height:18px;width:18px"></span></span></div></div></div></div></span></div></div></div><div><div style="font-family:"google sans",roboto,"helvetica neue",arial,sans-serif;font-size:23.4px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;color:rgb(0,29,53)"></div></div><br></div>I didn’t realize that statements were affected by Switch.</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 7, 2024 at 1:43 PM 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-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">We are dealing with multiple facial animations.  The thing we want to do is combine animations using HAnimDisplacers.  Currently, our animations go from key = 0 to key = 1, (weight = 0 to weight = 1) and each animation is controlled by a single TimeSensor that we enable or disable.  What we want to do is enable multiple facial animations, yet retain a single TimeSensor.  I have done something with enabling multiple time sensors all at the same time.  So, ideally, we could toggle each facial animation individually.<div dir="auto"><br></div><div dir="auto">Note that one can have multiple simultaneous HAnimDisplacer animations on a single Coordinate, they all add up just fine.  There’s no single animation per body part requirement as there is in other places in X3D (according to Michalis, from my understanding).</div><div dir="auto"><br></div><div dir="auto">I don’t currently know how to individually toggle multiple animations without toggling multiple TimeSensors, so assistance is welcome!  Indeed, a multiple toggle button X3D example would be welcome (hopefully, something we can put in a scenegraph).</div><div dir="auto"><br></div><div dir="auto">Here’s what we currently have <div><a href="https://github.com/coderextreme/ci2had/blob/main/resources/SingleMenuJin.x3d" target="_blank">https://github.com/coderextreme/ci2had/blob/main/resources/SingleMenuJin.x3d</a></div><div dir="auto"><br></div><div dir="auto">As you can see, lots of duplication.</div><div dir="auto"><br></div><div dir="auto">Viewed best in FreeWRL and Sunrize/X_ITE.</div></div><div dir="auto"><br></div><div dir="auto">John </div>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>