# OSC Remote Control

CueCollab can be controlled remotely via [OSC (Open Sound Control)](https://opensoundcontrol.stanford.edu/) messages.\
This allows integration with external tools, consoles, and automation systems.

As per OSC standard, please mind the order of arguments when sending messages.\
For example, if a message expects a string followed by an integer, sending them in reverse order may lead to unexpected behavior.

## Quick Reference

### Announcement

| Address                                     | Arguments                                                             | Description                  |
| ------------------------------------------- | --------------------------------------------------------------------- | ---------------------------- |
| [`/announcement/show`](#announcementshow)   | `message`, `type`, `scope`, `showDuration`, `autoClose`, `allowClose` | Send an announcement         |
| [`/announcement/clear`](#announcementclear) | —                                                                     | Dismiss current announcement |

### Environment

| Address                                   | Arguments | Description            |
| ----------------------------------------- | --------- | ---------------------- |
| [`/environment/scene`](#environmentscene) | `name`    | Set current scene name |

### Notepad

| Address                             | Arguments                                     | Description            |
| ----------------------------------- | --------------------------------------------- | ---------------------- |
| [`/notepad/create`](#notepadcreate) | `text`, `author`, `list`, `timecode`, `scene` | Create a notepad entry |

### Recording

| Address                                           | Arguments | Description                                            |
| ------------------------------------------------- | --------- | ------------------------------------------------------ |
| [`/recording/start`](#recordingstart)             | —         | Start recording                                        |
| [`/recording/stop`](#recordingstop)               | —         | Stop recording                                         |
| [`/recording/autopilot`](#recordingautopilot)     | `enabled` | Enable or disable Recording Autopilot                  |
| [`/recording/schedule`](#recordingschedule)       | `enabled` | Enable or disable Recording Schedule                   |
| [~~`/recording/autostart`~~](#recordingautostart) | `enabled` | ~~Enable or disable Recording Autopilot (deprecated)~~ |

### Showfile

| Address                           | Arguments                                    | Description                                         |
| --------------------------------- | -------------------------------------------- | --------------------------------------------------- |
| [`/showfile/save`](#showfilesave) | `target`                                     | Save the current show to a showfile                 |
| [`/showfile/load`](#showfileload) | `filename`, `saveTarget`, `delay`, `message` | Load a showfile, optionally announced after a delay |

### Timecode

| Address                                 | Arguments              | Description                                       |
| --------------------------------------- | ---------------------- | ------------------------------------------------- |
| [`/timecode/jump`](#timecodejump)       | `timecode`             | Jump to a timecode                                |
| [`/timecode/trigger`](#timecodetrigger) | `timecode`             | Trigger a timecode                                |
| [`/timecode/start`](#timecodestart)     | `timecode`, `duration` | Start or continue the internal timecode generator |
| [`/timecode/restart`](#timecoderestart) | —                      | Restart the internal timecode generator           |
| [`/timecode/stop`](#timecodestop)       | —                      | Stop the internal timecode generator              |

***

## Announcement

### `/announcement/show`

Sends an announcement to all connected clients. The announcement appears as an overlay on the targeted views and can be configured to auto-close or require manual dismissal.

| # | Name           | Type    | Required | Default                 | Description                                                               |
| - | -------------- | ------- | -------- | ----------------------- | ------------------------------------------------------------------------- |
| 1 | `message`      | string  | yes      | —                       | The announcement message text                                             |
| 2 | `type`         | string  | no       | `"blue"`                | Color style: `blue`, `green`, `yellow`, or `red`                          |
| 3 | `scope`        | string  | no       | `"user,admin,displays"` | Comma-separated list of targets: `user`, `admin`, `displays`, `recording` |
| 4 | `showDuration` | number  | no       | `300`                   | How long the announcement remains active, in seconds                      |
| 5 | `autoClose`    | number  | no       | `0`                     | Auto-dismiss after this many seconds on the client (`0` = no auto-close)  |
| 6 | `allowClose`   | boolean | no       | `true`                  | Whether the user can manually close the announcement                      |

Send a simple announcement to everyone

```
/announcement/show "Half hour call"
```

Send an urgent red announcement to all views

```
/announcement/show "STOP - Safety check" "red"
```

Send a green announcement to displays only, auto-closing after 10 seconds

```
/announcement/show "Beginners please" "green" "displays" 300 10
```

Send a non-dismissable announcement to all views

```
/announcement/show "Do not start — director on stage" "red" "user,admin,displays,recording" 600 0 false
```

### `/announcement/clear`

Dismisses the currently active announcement on all connected clients immediately.

Clear all announcements

```
/announcement/clear
```

***

## Environment

### `/environment/scene`

Sets the current scene name.

| # | Name   | Type   | Required | Default | Description                   |
| - | ------ | ------ | -------- | ------- | ----------------------------- |
| 1 | `name` | string | yes      | —       | The name of the current scene |

Set the current scene name

```
/environment/scene "Scene 1"
```

***

## Notepad

### `/notepad/create`

Creates a new notepad entry with the given text and optional metadata.

| # | Name       | Type   | Required | Default | Description                                                                 |
| - | ---------- | ------ | -------- | ------- | --------------------------------------------------------------------------- |
| 1 | `text`     | string | yes      | —       | The content of the notepad entry                                            |
| 2 | `author`   | string | no       | `""`    | The author of the entry                                                     |
| 3 | `list`     | string | no       | `""`    | The list to add the entry to                                                |
| 4 | `timecode` | string | no       | `"?"`   | Timecode in `HH:MM:SS:FF` format, `""` for generic, or `"?"` to use current |
| 5 | `scene`    | string | no       | `"?"`   | Scene name, `""` for empty, or `"?"` to use current                         |

Create a notepad entry at current timecode

```
/notepad/create "This is a note"
```

Create a notepad entry at current timecode with author and list

```
/notepad/create "This is a note" "Alice" "Lights"
```

Create a notepad entry with a specific timecode

```
/notepad/create "This is a note" "Alice" "Lights" "01:02:03:04"
```

Create a notepad entry in the generic section without a list

```
/notepad/create "This is a note" "Alice" "" ""
```

***

## Recording

### `/recording/start`

Starts the recording.

Start recording

```
/recording/start
```

### `/recording/stop`

Stops the recording.

Stop recording

```
/recording/stop
```

### `/recording/autopilot`

Enables or disables the [Recording Autopilot](/handbook/admin/recording#recording-autopilot). When enabled, recording starts and stops automatically based on timecode.

| # | Name      | Type    | Required | Default | Description                                        |
| - | --------- | ------- | -------- | ------- | -------------------------------------------------- |
| 1 | `enabled` | boolean | yes      | —       | `true` or `1` to enable, `false` or `0` to disable |

Enable Autopilot

```
/recording/autopilot true
```

Disable Autopilot

```
/recording/autopilot false
```

### `/recording/schedule`

Enables or disables the [Recording Schedule](/handbook/admin/recording#recording-schedule). When enabled, all configured schedules are active and will trigger start/stop at their configured times.

| # | Name      | Type    | Required | Default | Description                                        |
| - | --------- | ------- | -------- | ------- | -------------------------------------------------- |
| 1 | `enabled` | boolean | yes      | —       | `true` or `1` to enable, `false` or `0` to disable |

Enable the Recording Schedule

```
/recording/schedule true
```

Disable the Recording Schedule

```
/recording/schedule false
```

### ~~`/recording/autostart`~~

> **Deprecated**
>
> `/recording/autostart` is deprecated for consistency and will be removed in v1.\
> Use [`/recording/autopilot`](#recordingautopilot) instead — it has identical behavior.

~~Enables or disables the auto-start recording feature.~~

| # | Name      | Type    | Required | Default | Description                                        |
| - | --------- | ------- | -------- | ------- | -------------------------------------------------- |
| 1 | `enabled` | boolean | yes      | —       | `true` or `1` to enable, `false` or `0` to disable |

***

## Showfile

Showfiles are `.ccdb` files as managed on the [Showfile & Backup](/handbook/admin/showfile) admin page.

Filenames are normalized before use: they are lowercased, any character other than `a-z`, `0-9`, `_` and `-` is replaced with `-`, and the `.ccdb` extension is added if missing. So `"Main Show.ccdb"` and `"main-show"` both refer to `main-show.ccdb`.

#### Showfile Save Modes

Wherever a save target is expected, you can pass either a filename or one of these save modes:

| Save mode            | Description                                                                                                                                |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `/overwrite-current` | Overwrite the currently loaded showfile. If no showfile is loaded yet, a new file named `<show-name>_<date-time>.ccdb` is created instead. |
| `/quick-backup`      | Always create a new file named `<show-name>_<date-time>.ccdb`, leaving the current showfile untouched.                                     |

### `/showfile/save`

Saves the current show to a showfile. The saved file becomes the current showfile.

| # | Name     | Type   | Required | Default | Description                                     |
| - | -------- | ------ | -------- | ------- | ----------------------------------------------- |
| 1 | `target` | string | yes      | —       | Filename or a [save mode](#showfile-save-modes) |

Save as a named showfile

```
/showfile/save "main-show-final"
```

Overwrite the currently loaded showfile

```
/showfile/save "/overwrite-current"
```

Create a timestamped backup without changing the current showfile

```
/showfile/save "/quick-backup"
```

### `/showfile/load`

Loads a showfile, replacing all current show data. All connected clients reload afterwards.

> **Caution**
>
> Anything unsaved is lost when a showfile is loaded. Pass a `saveTarget` to save the current show first.

With a `delay`, this behaves like a [Scheduled Load](/handbook/admin/showfile#show-file-list) in the admin UI. Only one load can be scheduled at a time — scheduling another one replaces it, and an immediate load cancels it. A scheduled load can also be cancelled from the admin UI.

| # | Name         | Type   | Required | Default | Description                                                                                       |
| - | ------------ | ------ | -------- | ------- | ------------------------------------------------------------------------------------------------- |
| 1 | `filename`   | string | yes      | —       | The showfile to load                                                                              |
| 2 | `saveTarget` | string | no       | `""`    | Filename or [save mode](#showfile-save-modes) to save the current show to first, `""` to not save |
| 3 | `delay`      | number | no       | `0`     | Delay in seconds before loading, `0` to load immediately                                          |
| 4 | `message`    | string | no       | `""`    | Additional text appended to the scheduled-load announcement                                       |

Load a showfile immediately without saving

```
/showfile/load "another-great-show"
```

Save the current showfile, then load another one

```
/showfile/load "another-great-show" "/overwrite-current"
```

Back up the current show, then switch showfiles in 5 minutes with a note

```
/showfile/load "another-great-show" "/quick-backup" 300 "Please finish your notes."
```

***

## Timecode

### `/timecode/jump`

Jumps to a specific timecode position (including selecting the range) without triggering it.\
This updates the current timecode display but does not trigger any other action like recording or callsheet jumps.

*This command will only be executed if no other timecode source is currently active. If a timecode source is active, this command will be ignored to prevent conflicts.*

| # | Name       | Type   | Required | Default | Description                      |
| - | ---------- | ------ | -------- | ------- | -------------------------------- |
| 1 | `timecode` | string | yes      | —       | Timecode in `HH:MM:SS:FF` format |

Jump to 1 hour, 2 minutes, 3 seconds, frame 4

```
/timecode/jump "01:02:03:04"
```

### `/timecode/trigger`

The equivalent to playing a single-frame timecode at the specified position.\
This will trigger recording if configured and a jump in the callsheet.

*This command will only be executed if no other timecode source is currently active. If a timecode source is active, this command will be ignored to prevent conflicts.*

| # | Name       | Type   | Required | Default | Description                      |
| - | ---------- | ------ | -------- | ------- | -------------------------------- |
| 1 | `timecode` | string | yes      | —       | Timecode in `HH:MM:SS:FF` format |

Trigger timecode at 1 hour, 2 minutes, 3 seconds, frame 4

```
/timecode/trigger "01:02:03:04"
```

### `/timecode/start`

Starts the [internal timecode generator](/handbook/admin/timecode#internal-generator) at the given timecode. Without a timecode, the generator continues from where it was stopped.

*This command only has an effect if **Internal (Generator)** is the active timecode source.*

| # | Name       | Type             | Required | Default | Description                                                                                    |
| - | ---------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
| 1 | `timecode` | string           | no       | —       | Start timecode in `HH:MM:SS:FF` format. Omit to continue.                                      |
| 2 | `duration` | string or number | no       | —       | How long the generator runs, as `HH:MM:SS:FF` or in seconds. Omit to use the default duration. |

Start the generator at 1 hour

```
/timecode/start "01:00:00:00"
```

Start the generator at 1 hour for 5 minutes

```
/timecode/start "01:00:00:00" 300
```

Continue from where the generator was stopped

```
/timecode/start
```

### `/timecode/restart`

Starts the internal timecode generator again from the last used start timecode and duration.

Restart the generator

```
/timecode/restart
```

### `/timecode/stop`

Stops the internal timecode generator. The timecode stops on the last frame.

Stop the generator

```
/timecode/stop
```