replace_node ‐ A node replacement action
None.
This action is used to modify a node. The node that is included in the replace_node element defines the new node that will replace the target node(s) when the action is executed.
One of the following elements must occur in add_node: node or use.
A leaf node.
The example below defines an action that replaces a leaf node by a sphere.
<replace_node>
<node id="sphere_#{#n}">
<sphere id="sphere" radius="(0.05+({#n}*.02))"
sky_sphere="false" segments="{#segments}">
<texture encoding="jpeg" xlink:href="sky.jpg"
id="sky" tile_s="1" tile_t="-1" />
</sphere>
</node/>
</replace_node>