# Bitfocus Companion, Stream Deck & vMix Scripts

> Control DVE FX from Bitfocus Companion generic-http, Stream Deck preview thumbnails, vMix ScriptStartDynamic shortcuts, and 48 MultiView starter layouts.

Source: https://dvefx.com/docs/automation/companion-and-vmix-scripts
Last updated: 2026-12-04

**DVE FX** exposes a REST + SSE API on port `8090` (`http://127.0.0.1:8090` locally or `http://<dvefx-host-ip>:8090` on your studio VLAN) for the native **Bitfocus Companion** module, Stream Deck, external controllers, and vMix VB.NET shortcuts.

## Bitfocus Companion Integration

Point **Bitfocus Companion** (the native **DVE FX** module or Generic HTTP / SSE) at `http://127.0.0.1:8090` (same PC) or `http://<dvefx-host-ip>:8090` on your studio VLAN:

- **Handshake & Capabilities:** `GET /api/v1/info` returns engine version, transport protocol, license edition, and switcher connection state.
- **Live SSE Feedback Stream:** `GET /api/v1/events` pushes instant `state`, tally, `active_preset`, `graphic_slots`, and `fader` updates over `text/event-stream` without polling churn.
- **Dynamic Looks & Show Packs Picker:** `GET /api/v1/looks` and `GET /api/v1/show_packs` list built-in Show Packs and saved Looks; `POST /api/v1/look/recall` recalls any look by ID (`{ "id": "boardroom_lounge", "apply_dock_kit": false }`), or `POST /api/v1/show_pack` applies a coordinated Show Pack.
- **Trigger Currently Active Preset (empty POST):** `POST /api/v1/transition`
- **Trigger Explicit Preset:** `POST /api/v1/transition` with JSON body:

```json
{
  "preset": "spring_reflow",
  "duration_ms": 750,
  "handoff_mode": "motion_masked",
  "hold_on_return": false
}
```

- **Manual T-Bar Scrubbing (`0.0` to `1.0`):** `GET /api/v1/transition/fader` and `POST /api/v1/transition/fader` mirror the per-slot half T-Bars inside vMix (`{ "progress": 0.45, "preset": "silk_merge", "commit": false, "cancel": false }`).
- **Fire Pinned Dock Slot 1–4 (`slot` `0..=3`):** `POST /api/v1/slot/fire` with `{ "slot": 0, "preview": false }`
- **Fire 3D Broadcast Stinger 1–4 (`slot` `0..=3`):** `POST /api/v1/stinger/fire` with `{ "slot": 0, "preview": false }`
- **Trigger SFX Setup or Test:** `POST /api/v1/sfx/auto_add` adds bundled `-14 LUFS` WAV stems into vMix automatically.
- **Camera FX & Live Captions Control:** Trigger one-shot Auto-Reframe (`POST /api/v1/camera_fx/reframe`), configure per-camera effects (`POST /api/v1/camera_fx/input`), or toggle Live Captions & Translation (`GET /api/v1/translate/status`, `POST /api/v1/translate/start`, `POST /api/v1/translate/stop`, `POST /api/v1/translate/clear_captions`, `POST /api/v1/translate/test`).
- **Live Preview Thumbnail:** Fetch `GET /api/v1/preview.png` (`image/png`) or `GET /api/v1/preview.bmp` (`image/bmp`), both served with `Cache-Control: no-store`.

## vMix Shortcuts (`ScriptStart` / `ScriptStartDynamic`)

On **vMix 4K, Pro, and Max** (editions with built-in VB.NET Scripting), bind any keyboard key, MIDI controller, X-Keys button, or Input Trigger directly to **DVE FX**:

### Fire the Currently Active Preset (Empty POST)

```vb
Dim c As New System.Net.WebClient()
c.UploadString("http://127.0.0.1:8090/api/v1/transition", "POST", "")
```

### Fire vMix Dock Slot 1 (`slot` `0..=3`)

```vb
Dim c As New System.Net.WebClient()
c.Headers.Add("Content-Type", "application/json")
c.UploadString("http://127.0.0.1:8090/api/v1/slot/fire", "POST", "{""slot"":0}")
```

### Fire a Specific Preset or 3D Stinger

```vb
Dim c As New System.Net.WebClient()
c.Headers.Add("Content-Type", "application/json")
c.UploadString("http://127.0.0.1:8090/api/v1/transition", "POST", "{""preset"":""spring_reflow"",""duration_ms"":750}")
```

### Assigning the Script in vMix

1. Open **Settings → Shortcuts → Add**.
2. Click **Find** and press your keyboard key, MIDI pad, or X-Keys key.
3. Choose Function **`ScriptStartDynamic`** and paste the VB.NET snippet into **Value** (or save it once under **Settings → Scripting** and call it via **`ScriptStart`**).

## Native vMix MultiView Starter Layouts (48)

Call `POST /api/v1/vmix/create_layout` with `{ "kind": "<layout_kind>" }` to build aspect-true vMix MultiView inputs (including stock vMix geometries) or transparent floating Corner PiPs automatically:

| Category | Layout ID (`kind`) | Description |
| :--- | :--- | :--- |
| **2-Up & Stock Vertical / Split** | `2up_wide`, `2up_vdouble`, `2up_split_full`, `2up_tall`, `2up_stack` | Side-by-side 16:9, vMix `VDoubleBox` portrait crop, 50/50 vertical split, staggered, and stacked |
| **Slides & OTS** | `slides_right`, `slides_sidebar`, `news_split` | Full 16:9 guest + deck, deck + 16:9 guest, and News Desk OTS split |
| **Solo, Blank & Full + PIP** | `1up_framed`, `blank`, `full_pip_br`, `full_pip_bl`, `full_pip_tr`, `full_pip_tl` | Framed solo box, empty Blank MultiView starter, and fullscreen + corner PIP inset (`BR`/`BL`/`TR`/`TL`) |
| **Transparent Floating Corner PIPs** | `pip_br`, `pip_bl`, `pip_tr`, `pip_tl`, `pip_dual` | Transparent `Colour\|Transparent` floating Corner PIPs (4 corners + Dual PIP) |
| **3-Up Panels & Hero** | `3up_row`, `3up_vtri`, `3up_split_full`, `3up_hero`, `3up_hero_right`, `3up_triangle`, `3up_slides_2` | 3-panel row, vMix `VTriBox` & 3-column split, Hero+2 / 2+Hero, triangle, and Slides + 2 speakers |
| **4-Up Grids & Hero** | `4up_grid`, `4up_quad_full`, `4up_row`, `4up_vcols`, `4up_hero`, `4up_side`, `4up_side_left` | 2×2 Quad & full-bleed split, 4-panel row, 4 portrait columns, and Main + 3 bottom/right/left strips |
| **5-Up & 6-Up Panels** | `5up_grid`, `5up_hero`, `5up_hero_quad`, `5up_side`, `6up_grid`, `6up_vsix`, `6up_hero`, `6up_lframe` | 3+2 panel, Main + 4 row/2×2/side, 3×2 6-Up & vMix `VSixBox` portraits, Townhall deck + 5 guests, and 6-Up L-Frame |
| **7–10 Up Grids & Townhalls** | `7up_grid`, `7up_hero`, `8up_grid`, `8up_hero`, `9up_grid`, `10up_grid`, `10up_vgrid` | 4+3 panel, 3+Main+3 flanking, 4×2 gallery, 8-Up L-Frame, 3×3 9-Up grid, 10-Up 4+3+3, and 5×2 10-Up portraits |

Legacy shorthand aliases `"2up"` (`2up_wide`), `"pip"` (`pip_br`), `"4up"` (`4up_grid`), and `"2up_asym"` (`slides_sidebar`) are also accepted.
