Graphics Programs Reference
In-Depth Information
8. Select
Traffic-Lights
in the Object Manager. In the Attribute Manager, make sure the
User Data
button is chosen; the
User Data
area is displayed. In this area, specify any
value greater than 0 for the
Yellow
spinner; the yellow light is activated in the Perspect-
ive viewport, as shown in Figure 13-25. To deactivate the yellow color, enter
0
in the
Yellow
spinner.
Figure 13-25
The yellow light activated in the Perspective viewport
Next, you will activate the green light of the
Traffic signal
.
9. Maximize the
XPresso Editor
. In the
XGroup
area, click on the
Green
output port of
the
Traffic-Lights
node and drag the cursor to the
Input 1
input port of the
Compare 3
node; a connection is established between the
Compare 3
and
Traffic-Lights
nodes.
10. In the
XGroup
area, click on the
Output
output port of the
Compare 3
node and drag
the cursor to the
Switch
input port of the
Condition 3
node; a connection is established
between the
Compare 3
and
Condition 3
nodes.
11. In the
XGroup
area, click on the
Output
output port of the
Condition 3
node and drag
the cursor to the input port (blue square) of the
Green-Glass
node; a flyout is displayed.
From this flyout, choose
Basic Properties > Display Color > Display Color
; a con-
nection is established between the
Condition 3
and
Green-Glass
nodes. Next, close the
XPresso Editor
.
12. Select
Traffic-Lights
in the Object Manager. In the Attribute Manager, make sure the
User Data
button is chosen; the
User Data
area is displayed. In this area, specify any
value greater than 0 for the
Green
spinner; the green light is activated in the Perspective
Search WWH ::
Custom Search