<
head>
</
head>
<!--
Index for DEF nodes:
button1,
button2,
clock1,
clock2,
code1,
code2,
color,
color2,
colorpath1,
colorpath2,
firstarm,
lamp,
lamparm,
lampshade,
light,
movefirstarm,
movelamp,
movelampshade,
movesecondarm,
secondarm,
touch1,
touch2
Index for Viewpoint image:
Viewpoint_1
-->
<
Scene>
<
Viewpoint description='
DeskLamp'
position='
0 0.1 1'/>
<
Group>
<![CDATA[
ecmascript:
function set_light() {
value = TRUE;
}
]]>
</
Transform>
<
Transform DEF='
button2'
translation='
0.02 0.015 0.05'>
<![CDATA[
ecmascript:
function set_light() {
value = FALSE;
}
]]>
</
Group>
<
ROUTE fromNode='
movelamp'
fromField='
translation_changed'
toNode='
lamp'
toField='
set_translation'/>
<
ROUTE fromNode='
movefirstarm'
fromField='
rotation_changed'
toNode='
firstarm'
toField='
set_rotation'/>
<
ROUTE fromNode='
movesecondarm'
fromField='
rotation_changed'
toNode='
secondarm'
toField='
set_rotation'/>
<
ROUTE fromNode='
movelampshade'
fromField='
rotation_changed'
toNode='
lampshade'
toField='
set_rotation'/>
<
ROUTE fromNode='
touch1'
fromField='
touchTime'
toNode='
clock1'
toField='
set_startTime'/>
<
ROUTE fromNode='
clock1'
fromField='
fraction_changed'
toNode='
colorpath1'
toField='
set_fraction'/>
<
ROUTE fromNode='
colorpath1'
fromField='
value_changed'
toNode='
color2'
toField='
set_emissiveColor'/>
<
ROUTE fromNode='
touch2'
fromField='
touchTime'
toNode='
clock2'
toField='
set_startTime'/>
<
ROUTE fromNode='
clock2'
fromField='
fraction_changed'
toNode='
colorpath2'
toField='
set_fraction'/>
<
ROUTE fromNode='
colorpath2'
fromField='
value_changed'
toNode='
color2'
toField='
set_emissiveColor'/>
<
ROUTE fromNode='
touch1'
fromField='
touchTime'
toNode='
code1'
toField='
set_light'/>
<
ROUTE fromNode='
code1'
fromField='
value'
toNode='
light'
toField='
set_on'/>
<
ROUTE fromNode='
touch2'
fromField='
touchTime'
toNode='
code2'
toField='
set_light'/>
<
ROUTE fromNode='
code2'
fromField='
value'
toNode='
light'
toField='
set_on'/>
</
Scene>
</