<
Background groundColor='
1 1 1'
skyColor='
1 1 1'/>
<
Viewpoint description='
Dolphin switcher, 2m away'
position='
0 0 2'/>
<!-- Modify the whichChoice value in this Switch to 0, 1 or 2 to see the various versions of the model. Select whichChoice= -1 to show nothing. -->
<!--
Switch ROUTE:
[
from Sequencer.value_changed to whichChoice
]
-->
<
Switch DEF='
Switch'
whichChoice='
2'>
<!-- whichChoice values are 0, 1, 2 for these three children -->
<
Group DEF='
CurvedUpwardPose'>
</
Group>
<
Group DEF='
NeutralPose'>
</
Group>
<
Group DEF='
CurvedDownwardPose'>
</
Group>
</
Switch>
<!--
Sequencer ROUTEs:
[
from Time.fraction_changed to set_fraction
]
[
from value_changed to Switch.whichChoice
]
-->
<
IntegerSequencer DEF='
Sequencer'
key='
0 0.25 0.5 0.75 1'
keyValue='
0 1 2 1 0'
containerField='
children'/>
<!--
Time ROUTE:
[
from fraction_changed to Sequencer.set_fraction
]
-->
<
TimeSensor DEF='
Time'
cycleInterval='
4'
loop='
true'/>
<
ROUTE fromNode='
Sequencer'
fromField='
value_changed'
toNode='
Switch'
toField='
whichChoice'/>
<
ROUTE fromNode='
Time'
fromField='
fraction_changed'
toNode='
Sequencer'
toField='
set_fraction'/>