set_node_matrix_value ‐ Dynamic modification of the value of a matrix attached to a node
This action is used to modify the values of a matrix variable associated with a scene node. If the index attribute is provided, the value i of the index attribute defines the rank of the matrix value that is modified. In this case, the value attribute must be a scalar. If the index attribute is not provided, all the values of the matrix are modified. In this case, the value of the value attribute must be an array of the same size as the target matrix. If so, the target matrix is assigned the value of the value attribute.
If the attribute values contain parenthesized expressions, they are dynamically evaluated as numerical expressions and their values are replaced in the attribute value strings. The string value of the operator attribute is an operator string. The values of the operator must be "=", "=", "+=", "-=", "*=", or "/=".
The values v of the value attribute are called source values. The string value id of the id attribute defines the reference to the target matrix. The target node must have a matrix named id. If so, the target matrix is assigned the source values.
The target node must have a matrix named id.
The example below defines an action that assigns the identity matrix to the matrix initialRotation of the node main node:
<set_node_matrix_value id="initialRotation" value="(1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0)" operator="="/> <target type="single_node" value="#birdPath_{#n}" />