<terminationScript> ‐ An termination script
This element is used to contain a script associated with the termination of a scene. It is attached to the root node of a scene graph. Termination script commands have no triggers since the script is automatically launched when the scene is discarded.
This element expects a list of commands as child nodes.
In the example below, the termination script contains one command. The action associated with this command outputs the string End of rendering to the console.
<terminationScript id="final_script"> <command> <action> <write_console value="End of rendering" /> </action> </command> </terminationScript>