Script objects

A script object is a scene object that encapsulates a script. It has no role as a 3D object in a scene, but handles specific parts of a model. Following figure shows a script object:

[Script object (most of the time hidden)]


Script objects come in two flavors:

  • simulation scripts: a simulation script represents code that handles a particular function in a simulation. It runs only when simulation is running.
  • customization scripts: a customization script represents code that handles a particular customization aspect in a scene or model. It runs also when simulation is not running.
  • A double-click on a script object in the scene hierarchy opens the script dialog and the script editor.

    Script objects can be added to the scene with [Add > Script], or created via sim.createScript.