# Coming from OBS

Source: https://docs.lightair.app/desktop/get-started/coming-from-obs

> Bring your OBS scenes into Lightair, read the import's summary, find OBS's features under Lightair's names, and keep using your obs-websocket tools.

In short:
- Choose **File › Import OBS Scenes…** and pick an OBS scene collection file. Its scenes, sources, filters, audio and transition are added to the open workspace.
- The status bar sums up the import. Groups, nested scenes and plugin sources aren't imported.
- Tools that speak obs-websocket 5 connect to Lightair on port 4455, with the password from **Settings › Remote API**.

In the app: File › Import OBS Scenes…; Scenes › Import OBS scenes…; Settings › Remote API

## Import your OBS scenes

OBS keeps each scene collection as a JSON file. In OBS, **Scene Collection › Export** saves a
copy wherever you like; or find the file in OBS's settings folder, under `basic/scenes`.

1. In Lightair, choose **File › Import OBS Scenes…**. The **Import OBS scenes…** button at the
   top of **Scenes** and the command palette's **Import OBS scenes** do the same.
2. Pick the scene collection's `.json` file.

The scenes are added to the workspace that's open, after its own scenes, as one step: undo
(`⌘Z` or `Ctrl+Z` on Windows) removes the whole import. A scene whose name is already taken gets a number,
such as "Main (2)". The scene that was on air in OBS goes on air.

To keep an OBS show apart from your other scenes, create a workspace first
(**File › New Workspace…**) and import into that.

## What comes across

| From OBS | In Lightair |
|---|---|
| Scenes, in OBS's order | Scenes |
| Sources in a scene | Objects, with their position, size, rotation, crop, flip, visibility and lock |
| Image, colour, media, text, browser and Syphon sources | Sources of the same kind, with their settings |
| Display, window, game and camera captures | Lightair's own captures, so the workspace opens on a Mac or a PC |
| Filters built into OBS | Effects on the same source, with their settings, switched on or off as they were |
| The Beauty filter | Lightair's camera effects |
| Desktop Audio and Mic/Aux | Tracks in the **Audio Mixer**, with their volume, mute and monitoring |
| Audio sources placed in a scene | Tracks in the **Audio Mixer** |
| The current transition and its duration | The show's transition: Cut, Fade, Slide, Swipe or Wipe (as Wipe), Fade to Color (as Dip), Move, or Stinger with its video and cut point |

OBS doesn't save how big each source is, so for some objects Lightair estimates the size. It
corrects them once their sources start, unless you've moved them first.

## What doesn't

- **Plugin sources and filters** that aren't built into OBS. Lightair doesn't load OBS plugins.
- **Groups and nested scenes**: the objects inside them are skipped.
- **Transitions** Lightair doesn't have become **Fade**.
- **The profile**: stream service and key, encoders and recording settings. Set them up in
  **Outputs** and **Settings**.
- **Hotkeys**. Set them in **Settings › Shortcuts**.

An audio source placed in an OBS scene played only in that scene; in Lightair it becomes a mixer
track that plays in every scene.

## Read the summary

When the import finishes, the status bar at the bottom of the window sums it up:

> Imported OBS scenes: 24 converted, 1 replaced by built-in features, 2 left out (plugins), 3 need attention

- **Converted**: scenes, sources, filters and audio tracks that came across as they were.
- **Replaced by built-in features**: OBS plugins with a Lightair feature in their place, such as
  the Beauty filter or the Move transition.
- **Left out (plugins)**: plugin sources and filters that weren't imported.
- **Need attention**: things to look at: skipped groups and nested scenes, audio that moved to the
  mixer, sizes that were estimated, a transition that became Fade.

If the file isn't a scene collection, the status bar says it couldn't import it and why.

After an import, click through each scene, and look over the effects on objects that had
filters in OBS.

## OBS's words and Lightair's

| In OBS | In Lightair |
|---|---|
| Scene collection | Workspace (**File › New Workspace…**, **Open Workspace…**) |
| Sources list | **Hierarchy**; each entry is an object |
| Filters | Effects, in the **Inspector** |
| Docks | Panels, in the **Window** menu |
| Studio Mode, Transition | **Cue scenes**, then **Take** (`⌘↩` or `Ctrl+Enter` on Windows) |
| Replay buffer, Save Replay | **Settings › Clips**, then **Save clip** |
| Hotkeys | **Settings › Shortcuts** |
| Stream and recording settings | **Outputs**, **Settings › Recording**, **Settings › Streaming** |
| A second, vertical canvas | **Object › Add Vertical Canvas** |
| obs-websocket | **Settings › Remote API** |

## Keep your obs-websocket tools

Lightair answers the obs-websocket 5 protocol, so tools and scripts built for OBS can switch scenes, start and stop the
stream and recording, save replays, mute inputs and move scene items in Lightair. In those
tools' terms, a Lightair scene is a scene, an object is a scene item, and a mixer track is an
input's volume and mute.

1. Open **Settings › Remote API**. **Let other apps control Lightair** is on from the start.
2. Check the **Port**: 4455, where OBS tools look.
3. Copy the password from **Password**. Lightair asks for it by default, and keeps it in the
   Keychain on a Mac or Windows Credential Manager on Windows.
4. In your tool, connect to the address shown beside **OBS tools (obs-websocket 5)**
   (`ws://127.0.0.1:4455`) with that password.

Only apps on the same computer can connect, unless you switch on **Other devices on your
network**; then the password is always asked.

:::caution
OBS uses port 4455 too. If OBS is open with its WebSocket server on, Lightair can't use the port
and says so: quit OBS, or choose another port in both apps.
:::

Lightair covers the requests OBS tools use most, not every one in the protocol. For full
control, use Lightair's own API: see [Connect to Lightair](/developers/control/connect).

## Related

- [Scenes](/desktop/build-your-show/scenes)
- [Objects](/desktop/build-your-show/objects)
- [Effects](/desktop/build-your-show/effects)
