The Bot > Event Scripts > Using Event Scripts for Bot Events

Using Event Scripts for Bot Events

You can register script files or commands to listen for specific events that are broadcast by Templater. You can do this through the Templater Preferences dialog or the templater-options.json file if using the command line interface.

Three event types are supported:

  • Post job Broadcast after each render or replication that AE performs as initiated by Templater. In the Templater Preferences panel, this corresponds to the After each job field.
  • Post Batch Broadcast after a batch of render or replication jobs AE performs as initiated by Templater. In the Templater Preferences panel, this corresponds to the After all jobs field.
  • On Bot disable Broadcast when The Bot is disabled for any reason other than a hard crash. In the Templater Preferences panel, this corresponds to the On disable field.

Registering scripts within the preferences dialog

  1. In the Templater preferences dialog, in the Bot Settings group, navigate to Shell command for bot events.
  2. Click the ... button to open a file selector and choose a shell script file that you want to run for that particular event, or simply type an absolute path to the script. Alternatively, you can input any command as you would if you were in a terminal session. Sample event scripts are available at Dataclay's code repository on GitHub.

Registering Event Scripts in Templater Preferences

Registering scripts within the CLI options file

  1. In the templater-options.json file, in the bot object, set the post_cmd_job, post_cmd_batch, and shutdown_cmd properties to the absolute path of the file you want to run for that particular event. Alternatively, you can input any command as you would if you were in a terminal session. Sample event scripts are available at Dataclay's code repository on GitHub.

Registering Event Scripts in templater-options.json

Related Topics

Event Scripts