Model Train Script
English
English
  • Model Train Script
  • About
  • Manual
    • Supported systems
    • Settings
    • Profile
    • Throttle
    • Vehicles
    • Layout
    • Automation
      • Scripts
        • Section
        • Action
          • Vehicle control
          • Layout control
          • Timing
          • Structure
          • Scenery
      • Time tables
      • Flags
      • Routes
      • Sounds
      • Cameras
      • Examples
        • Block control
        • Auto switch turnout
        • Camera detection
  • Release notes
Powered by GitBook
On this page
  • Configuration​
  • Execution
  • Manual
  • Events
  • Sections​
  • Examples​

Was this helpful?

  1. Manual
  2. Automation

Scripts

The heart of automation

Last updated 21 days ago

Was this helpful?

Scripts form the heart of your layout automation. Your script essentially exists of a sequential set of actions divided into several sections.

For a better overview we recommend you to sort your script in a folder structure.

Configuration

A script can be repeatable, toggling the repeat option lets your skip repeat indefinitely until you manually stop it.

Execution

The execution trigger of your script can either be manual or by event event or by camera vehicle detection.

Manual

Events

Events can be triggered by events originating from:

  • (layout) accessories

  • time

  • feedback sensors

  • cameras

  • vehicles

  • Or system events like startup or script execution

A script can define multiple events, any of these events will trigger a script execution.

Event based scripts can also define conditions for execution. Multiple conditions can be defined, you can select AND if all conditions should match or OR if any of the conditions should match before execution.

Conditions can be defined for (layout) accessories, feedback sensors, vehicle state or flag state.

Your script is divided into sections. The purpose of a section is to order your scripts functionally to keep an overview of the potentially many sequential steps. Below is a nice logical division of a script into multiple sections.

Manual scripts can be started via the automate tab of the or inside a .

Sections

You can create, order the sections via the edit and add button in the top bar. Read for more details around sections.

Examples

As a source of inspiration or better understanding of the features please have a look at the .

throttle
time table
​
​
here
examples
​