<initializationScript> ‐ An initialization script
This element is used to contain a script associated with the initialization of a scene. It is attached to the root node of a scene graph. Initialization script commands have no triggers since the script is automatically launched when the scene is loaded.
This element expects a list of commands as child nodes.
In the example below, the initialization script contains one command. The actions associated with this command modify the boolean attribute testable of several scene nodes.
<initializationScript id="beginning_script"> <command> <action> <set_node_attribute_value testable="false" /> <target type="multiple_nodes" value="#*" /> </action> <action> <set_node_attribute_value testable="true" /> <target type="multiple_nodes" value="#classe_niveau1_no*" /> </action> </command> </initializationScript>