OBS-Scripts

Advanced OBS Studio Automation Suite

For an interactive guide with visuals: view online


đź“– Index


Overview

This repository provides a suite of tools for advanced automation in OBS Studio, focusing on dynamic scene layouts and seamless integration with VDO.Ninja. It includes:


VDO.Ninja OBS Control Dock (Modified)

This is a customized version of the OBS Control Dock by Steve Seguin (creator of VDO.Ninja). It functions as a web-based interface for managing VDO.Ninja sources in OBS Studio via the OBS WebSocket plugin.

Key Features of the Control Dock

Installation and Setup for Control Dock

  1. Access the Page:
  2. Add as an OBS Dock:
    • In OBS: Go to Docks → Custom Browser Docks….
    • Choose a Dock Name (e.g., “VDO.Ninja Control”).
    • Enter the local file path or the hosted URL.
    • Click Apply, then Close.
  3. Configure the Websocket:
    • Connection Adress: Enter URL (default: ws://localhost:4455) and password. Click Connect.
    • Prefixes: Set Camera, Reaction, and Highlight prefixes (must match those in the Lua script).
    • Click Connect.
  4. Configure the VDO.Ninja Connection:
    • VDO.Ninja: Enter your room name and password (if any), then connect.
  5. Configure Scenes:
    • Target Scenes: Select main, highlight, and screen share scenes as needed.
    • Resolution: Select resolution of new cameras e screen shares.
    • Automation: Choose wether the Dock will automatically add/remove sources upon connection/disconnection.

Advanced Scene Layouts Lua Script

This Lua script adds dynamic scene management and layout automation to OBS Studio. It works best with sources named and managed by the Control Dock.

Key Features of the Lua Script

Installation and Configuration for Lua Script

  1. Download the Script: Get Advanced Scene Layouts.lua from this repo.
  2. Open OBS Studio: Start OBS.
  3. Add the Script:
    • Go to Tools → Scripts.
    • Click the ”+” button and select the .lua file.
  4. Configure the Script:
    • Select the script in the list to show properties.
    • Enable/disable layouts as needed.
    • Assign target scenes for each layout.
    • Set source name prefixes (must match the Control Dock).
    • Adjust spacing, margins, and offsets using sliders.

Integrated Workflow

When used together, the Control Dock and Lua script create a highly automated streaming environment. The Dock manages VDO.Ninja connections and source naming, while the Lua script arranges scenes and applies dynamic layouts.

How They Integrate

Example Workflow: Using the Highlight Feature

  1. Configuration:
    • Set Camera Prefix and Highlight Prefix in both the Control Dock and Lua script.
    • Assign the highlight scene in both tools.
  2. In Action:
    • Guests join your VDO.Ninja room and are added to OBS as, e.g., VDO_guest1, VDO_guest2.
    • Click “Highlight” on a guest in the Control Dock. The source is renamed to VDO.Highlight_guest2 and the scene transitions.
    • The Lua script detects the prefix and applies the highlight layout.
    • “Unhighlight” reverses the process and returns to grid layout.

Requirements


Credits & Original Resources


Feel free to explore, use, and adapt these tools to automate and optimize your OBS Studio + VDO.Ninja workflow!