7.5. CrowdReplaceIntermediaryTargets

crowd_replace_intermediary_targets ‐ A crowd intermediary target replacement action

7.5.1. Attributes

None.

7.5.2. Description

This action is used to replace the content of the intermediaryTargets element in a crowd node by a new set of nodes. The number of nodes contained in the crowd_replace_intermediary_targets element must be equal to the number of nodes in the intermediaryTargets child of the target crowd node.

7.5.3. Expected children

One of the following elements must occur in add_node: node, repeat, or use.

7.5.4. Expected target

The target node must be a leaf node that contains a crowd.

7.5.5. Example

The example below defines an action that replaces the content of an intermediaryTargets element of a crowd node by a set of 20 quads.


<crowd_replace_intermediary_targets>
  <repeat begin="0" end="3" step="1" id="p">
    <repeat begin="1" end="5" step="1" id="n">
      <node id="machine_line_end_{#n}" displayed="true">
        <quad id="machine_line_end_quad_#{#n}"
            x1="(-2 + ({#n} * 8))" y1="0" z1="(.5 + (30*{#p}))"
            x2="(-2 + ({#n} * 8))" y2="1" z2="(.5 + (30*{#p}))"
            x3="(-2 + ({#n} * 8))" y3="1" z3="(.5 + (30*{#p}))"
            x4="(-2 + ({#n} * 8))" y4="0" z4="(.5 + (30*{#p}))" >
          <color id="red" r="1." g="0." b="0."/>
        </quad>
      </node>
     </repeat>
   </repeat>
</crowd_replace_intermediary_targets>