Embedded scripts

CoppeliaSim supports, next to the sandbox and add-ons, also embedded scripts: an embedded script is a script that is embedded in a scene (or model), i.e. a script that is part of the scene and that will be saved and loaded together with the rest of the scene (or model). Different types of embedded scripts are supported, each has specific features and application areas:

[Embedded script types]


  • Script objects: script objects are scripts encapsulated in scene objects. They come in two flavours: simulation scripts and customization scripts
  • The main script: the main script represents the simulation loop code that allows a simulation to run. Without main script, a running simulation won't do anything significant

  • Embedded scripts, and all scripts in general, are invoked via callback functions by CoppeliaSim, and follow a specific execution order. They can run threaded or non-threaded.

    Note: as of CoppeliaSim V4.7, script objects (formerly known as associated scripts) are fully independent scene objects.