<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN"   "http://www.web3d.org/specifications/x3d-3.1.dtd">
<X3D profile='Immersiveversion='3.1xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.1.xsd '>
<head>
<meta name='titlecontent='BooleanSequencerIntegerSequencer.x3d'/>
<meta name='descriptioncontent='Show synchronized use of BooleanSequencer and IntegerSequencer nodes'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='6 September 2006'/>
<meta name='modifiedcontent='24 February 2008'/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter09-EventUtilitiesScripting/BooleanSequencerIntegerSequencer.x3d '/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../../license.html'/>
</head>
<!--

Index for DEF nodes: Child0, Child1, Child2, Child3, ChildSequencer, Clock, GreyAppearance, OnOffSequencer, ShapeSwitcher, SpecialSpotLight
-->
<Scene>
<!-- Clock ROUTEs:  [from fraction_changed to OnOffSequencer.set_fraction ] [from fraction_changed to ChildSequencer.set_fraction ] -->
<TimeSensor DEF='ClockcycleInterval='5loop='true'/>
<!-- OnOffSequencer ROUTEs:  [from Clock.fraction_changed to set_fraction ] [from value_changed to SpecialSpotLight.on ] -->
<BooleanSequencer DEF='OnOffSequencerkey='0 0.2 0.4 0.6 0.8 1keyValue='true false true false true truecontainerField='children'/>
<!-- SpecialSpotLight ROUTE:  [from OnOffSequencer.value_changed to on ] -->
<SpotLight DEF='SpecialSpotLightcolor='1 0.0 0.0location='0 0 10beamWidth='1.570796global='true'/>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='OnOffSequencertoField='set_fraction'/>
<ROUTE fromNode='OnOffSequencerfromField='value_changedtoNode='SpecialSpotLighttoField='on'/>
<!-- ChildSequencer ROUTEs:  [from Clock.fraction_changed to set_fraction ] [from value_changed to ShapeSwitcher.whichChoice ] -->
<IntegerSequencer DEF='ChildSequencerkey='0 0.2 0.4 0.6 0.8 1keyValue='0 1 2 3 -1 0containerField='children'/>
<Transform translation='-1.75 0.5 0'>
<!-- ShapeSwitcher ROUTE:  [from ChildSequencer.value_changed to whichChoice ] -->
<Switch DEF='ShapeSwitcherwhichChoice='-1'>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='ChildSequencertoField='set_fraction'/>
<ROUTE fromNode='ChildSequencerfromField='value_changedtoNode='ShapeSwitchertoField='whichChoice'/>
<Shape DEF='Child0'>
<Text string='Child 0 litsolid='true'/>
<Appearance DEF='GreyAppearance'>
<Material diffuseColor='0.7 0.7 0.7'/>
</Appearance>
</Shape>
<Shape DEF='Child1'>
<Text string='Child 1 unlitsolid='true'/>
<Appearance USE='GreyAppearance'/>
</Shape>
<Shape DEF='Child2'>
<Text string='Child 2 litsolid='true'/>
<Appearance USE='GreyAppearance'/>
</Shape>
<Shape DEF='Child3'>
<Text string='Child 3 unlitsolid='true'/>
<Appearance USE='GreyAppearance'/>
</Shape>
</Switch>
</Transform>
</Scene>
</X3D>
<!--

Index for DEF nodes: Child0, Child1, Child2, Child3, ChildSequencer, Clock, GreyAppearance, OnOffSequencer, ShapeSwitcher, SpecialSpotLight
-->

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> -->