The TimeSensor cycleTime of the lower yellow rectangle is connected to the startTime of the upper yellow rectangle. The lower yellow rectangle's TimeSensor has loop set to true, while the upper is set to false. At the beginning of each cycle of the lower rectangle the upper rectangle will activate and move along to the end of the path. The upper rectangle TimeSensor has a cycleInterval of 2s, while the lower has a cycleInterval of 8s.
The lower pair of light blue rectangles are connected to identical TimeSensors the same way. The only difference is that the lower of the light blue rectangles TimeSensor can be enabled or disabled via the buttons. The color of the lower track, green or red, shows whether the TimeSensor is enabled or disabled (the upper three tracks are always enabled and shown in blue).
Snapshot taken just after 1s, no buttons clicked. At 2s the upper yellow and light-blue rectangles
will reach the end of their first run and then the TimeSensors will go inactive.
![]() |
Snapshot taken around 5s, no buttons yet clicked. At 8s the lower yellow and light-blue rectangles
will start a new cycle of their TimeSensors and the new cycle will start the upper rectangles off on a
new run.
![]() |
Snapshot taken after disable button clicked. When the lower light-blue rectangle's TimeSensor is
disabled neither light-blue rectangle will move.
![]() |
Snapshot taken after enable button clicked. When it is re-enabled the lower-light blue rectangle will
be in the same position as the lower yellow rectangle (both their sensors being set to loop continually
from their identical startTimes). The upper light blue rectangle will not move until the lower light
blue one starts a new cycle. Hence while the lower rectangles will always be in the same position when
enabled the same is not true for the upper ones as the upper yellow may be active but the enable
missed the start of the cycle and hence the upper light blue will not have been triggered on a new run
(as per the screen capture below)
![]() |