2022-07-02 02:23:22 +01:00
|
|
|
## Requirements
|
|
|
|
|
|
|
|
- [OBS Studio](https://obsproject.com/)
|
2022-09-16 12:46:44 +01:00
|
|
|
- [OBS Python SDK for Websocket v5](https://github.com/aatikturk/obsws-python)
|
2022-07-02 02:23:22 +01:00
|
|
|
|
|
|
|
## About
|
|
|
|
|
|
|
|
A simple demonstration showing how to sync OBS scene switches to Voicemeeter states. The script assumes you have connection info saved in
|
2022-07-29 20:06:26 +01:00
|
|
|
a config file named `config.toml` placed next to `__main__.py`. It also assumes you have scenes named `START` `BRB` `END` and `LIVE`.
|
2022-07-02 02:23:22 +01:00
|
|
|
|
2022-07-29 20:06:26 +01:00
|
|
|
A valid `config.toml` file might look like this:
|
2022-07-02 02:23:22 +01:00
|
|
|
|
2022-07-29 20:06:26 +01:00
|
|
|
```toml
|
2022-07-02 02:23:22 +01:00
|
|
|
[connection]
|
2022-07-29 20:06:26 +01:00
|
|
|
host = "localhost"
|
|
|
|
port = 4455
|
|
|
|
password = "mystrongpass"
|
2022-07-02 02:23:22 +01:00
|
|
|
```
|
2022-08-06 08:58:42 +01:00
|
|
|
|
2023-06-23 17:44:51 +01:00
|
|
|
Closing OBS will end the script.
|
|
|
|
|
2022-08-06 08:58:42 +01:00
|
|
|
## Notes
|
|
|
|
|
2023-06-23 17:44:51 +01:00
|
|
|
In this example all but `voicemeeterlib.iremote` logs are filtered out. Log level set at DEBUG.
|
|
|
|
|
2022-09-16 12:46:44 +01:00
|
|
|
For a similar Streamlabs Desktop example:
|
2022-08-06 08:58:42 +01:00
|
|
|
|
2022-09-16 13:00:38 +01:00
|
|
|
[Streamlabs example](https://gist.github.com/onyx-and-iris/c864f07126eeae389b011dc49520a19b)
|