Skip to content

Route cues to template.applescript

antoniondc edited this page Oct 29, 2025 · 1 revision

description: Route tracks to template author: Ben Smith version: "2.2" source: bensmithsound.uk testedqlab: "4.7" testedmacos: 10.15.7 separateprocess: "true"

Change Log

Version Date Author Description
2.2 Ben Smith + Agregate Route click tracks to channels, Route Soundcheck tracks to template, Set crosspoints to template and Set gangs to template to one script
2.1 Ben Smith + will now correctly route audio if it is ganged differently to the routing option
2.0 Ben Smith + moved common functions to external script
1.4 Ben Smith + works with videos as well
1.3 Ben Smith + allows assignment of UDVs from the script calling this one
1.2 Ben Smith + added option to turn off renaming cues
+ added error catching
1.1 Ben Smith + takes number of output channels from the notes of cues, to streamline editing for new projects
1.0 yyyy-mm-dd Ben Smith Initial version

Overview

Routes the selected audio track(s) or video to the selected template cue


Usage

How to Run

set theScript to load script "/QLab/path/to/Script Name.scpt"
run theScript

Sempre use o path completo! paths repativos (~) não são aceitos dentro do qlab

  1. Script Cue:
    Paste the script contents into a Script Cue in your QLab project.

Parameters / User Variables

Variable Type Default Description
userLevel Number (none) Level to set in dB
userPrefix String "" Prefix for generated cue names
  • Where and how to set these (via Memo Cues, global variable, etc). Needs List call "Script Files" Inside this List o script espera pelo seguinte grupo: "Routing templates" Dentro desse grupo vai ter todos os modelos de 'Audio Level' Alem desse grupo o script espera + 2 memo cue: (name) - Output channel count, (note) - 6 {quantidade de canais usando no projeto} (name) - Row count, (note) - 2 {quantidade de inputs da track}

Example

Show a short code example (or screenshot if relevant) demonstrating how to use the script, including any required variables.


What It Does

  • List out the steps the script takes or the operations performed.

  • Point out any QLab features used (e.g., "Modifies all selected cues", "Creates a fade cue with specified parameters", etc).

  • Mention any limitations or known issues.


Required QLab / macOS Version

  • QLab: 4.0+ (or specify version)

  • macOS: (list if relevant)


Related Scripts


Credits

If adapted, credit the source/original author here.


rowCount: "2" OutputChannelCount: "6" Routing templates: (Group Cue com todos os templates)

Template Routes the selected audio track/s the same as a selected template cue

para funcionar esse script é preciso criar um Group Cue chamado "Routing templates" dentro do list cue "Script FIles" + memo cue chamado "Output channel count" e "Row count"

The current generation of scripts in Routing work using templates. This means you can quickly and easily set levels, crosspoints, etc. to multiple 'defaults' via a quick dialog box.

To use these, you must set templateCueListName and templateGroupCueName in User Defined Variables. It will then use every audio file in the group cue as an option, and copy the appropriate routing from there, up to the count of your "Output Channel Count" value.

The options include:

  • Route tracks to template: Sets the faders of the audio cue, ignoring master and crosspoints.
  • Set crosspoints to template: Sets the crosspoints of the audio cue, ignoring master and faders.
    • Append the template name with " - X" where X is the number of inputs of the audio file. e.g. if you run the script on a mono file, send it at 0 to every output; if you run the script on a stereo file, you may have several different options. If there is only one option for the number of tracks on the selected cue, it will set routing automatically.
  • Set gangs to template: Sets values of gangs.
    • If you append the template name with " - X", then it will also set gangs of X rows of crosspoints. If you leave the template name without this, the script will simple set gangs of faders.

Route tracks to template also has an option to append the name of the template onto the end of the cue name: this is designed for Click Track routing primarily.

Menu

=================== < Back To Repo > ===================

Clone this wiki locally