5.75. TerminationScript (element)

<terminationScript> ‐ An termination script

5.75.1. Attributes

NameTypeDefaults
idIDNone (required)

5.75.2. Description

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.

5.75.3. Expected child

This element expects a list of commands as child nodes.

5.75.4. Example

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>