<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Okay, here's what I've got with Event Utilies so far. I'm guessing that this isn't working because the Switch is not sending events to the startTime field to the selected child, and stopTime to the other animations in the Switch. This is as far as I've gotten with my intuition, and not doing a lot of repetitive coding.</div><div><br></div><div>DEF EverythingAnimation Group {</div><div> children [</div><div> DEF EverythingTimer TimeSensor { cycleInterval 10 loop TRUE enabled TRUE } # set_bind "ToddlerView"</div><div> ]</div><div>}</div><div><br></div><div><div>ROUTE Everything_Touch.touchTime TO StandTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO PitchTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO YawTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO RollTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO WalkTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO KickTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO StopTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO RunTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO JumpTimer.stopTime</div><div>ROUTE Everything_Touch.touchTime TO EverythingTimer.startTime</div><div><br></div><div>DEF mySequencer IntegerSequencer {</div><div> key [ 0 0.9 1.1 2.23 4.3 5.5 6.3 7.3 8.5 8.6 10 ] # Leif_humanoid_root_TranslationInterpolator x 10</div><div> keyValue [ 0 1 2 3 4 5 6 7 8 9 10 ]</div><div>}</div><div>DEF mySwitch Switch {</div><div> whichChoice 0</div><div> children [</div><div> USE StandTimer</div><div> USE PitchTimer</div><div> USE YawTimer</div><div> USE RollTimer</div><div> USE WalkTimer</div><div> USE RunTimer</div><div> USE JumpTimer</div><div> USE KickTimer</div><div> USE StopTimer</div><div> USE StandTimer # repeat, here, TODO</div><div> USE PitchTimer</div><div> ]</div><div>}</div><div>ROUTE EverythingTimer.fraction_changed TO mySequencer.set_fraction</div><div>ROUTE mySequencer.value_changed TO mySwitch.whichChoice</div></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 6, 2023 at 9:02 PM John Carlson <<a href="mailto:yottzumm@gmail.com">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 dir="ltr"><div dir="ltr">Sorry, I tried to paste, but I sent the previous message instead. To continue:<div><br></div><div><a href="https://stackoverflow.com/questions/7662518/vrml-route-as-a-parameter-in-proto" target="_blank">https://stackoverflow.com/questions/7662518/vrml-route-as-a-parameter-in-proto</a><br></div><div><br></div><div>describes how to send ROUTE to a PROTO, but it uses Script. Is there another solution?</div><div><br></div><div>Thanks!</div><div><br></div><div>John</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 6, 2023 at 8:58 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:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 6, 2023 at 8: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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Understood that I don't need script. Understand that I suffer from carpal tunnel and I don't want to waste a lot of time editing duplicate code. Maybe we can do something like IMPORT/EXPORT or prototypes.</div></div></div></blockquote><div><br></div><div>I'm thinking I can declare a PROTO, say JumpAndRunAnimation, and pass 2 SFNodes (or an MFNode) which contain the Animation Groups. I'm hoping that this will create a separate namespace for the interpolators and TimeSensors found in the Animation Groups. After I pass in the Animation Groups, I use event utilities to chain the animation groups passed into the proto in order. I'll have to somehow do the chaining between Animation Group TimeSensors in the PROTO. I've not done PROTOs in VRML yet, so this should be a challenge. Hmm. Is that all? How do I do chaining on any number of Animation Groups?</div><div><br></div><div>Where do I put the ROUTEs that turn on one Animation group and turn off the other Animation groups? In a Switch? Does that work? Can I pass a similar list of ROUTEs to the PROTO?</div><div><br></div><div><br></div><div>Thanks!<br><br></div><div>John </div></div></div>
</blockquote></div>
</blockquote></div>