ScriptEntity

Originally developed for video capture, a ScriptEntity can be used to change window Views, to create automatic zooming and panning, and to toggle video capture during a run.  Furthermore, keywords defined in the script file can be used to modify simulation and object parameters initially defined in the input configuration file.

At present, the ScriptEnity cannot be dragged and dropped into a model. It can only be created by editing the configuration file.

The ScriptEntity object takes only one keyword, which is the path to a script (.scr) file.

The script file contains sets of model inputs preceded by the Time keyword under the ScriptEntity object. 

Inputs for .scr file

Keyword

Description

Time

The simulated time at which the subsequent inputs are executed.

For example, the following inputs can be entered into a .scr file and then referenced by a ScriptEntity object to slow down the model at a given point in the simulation run:

ScriptEntity1 Time            { 24.0 h }

Simulation    RealTime        { TRUE }

Simulation    RealTimeFactor  { 1200 }

 

ScriptEntity1 Time            { 30.0 h }

Simulation    RealTime        { FALSE }