This plugin allows you to toggle between the currently active scene and a predefined scene in OBS using a hotkey.
- Copy the provided script (provided above) and save it as
scene_toggler.lua
on your computer. - Open OBS Studio.
- Navigate to
Tools
>Scripts
. - Click on the
+
(Add) button and select thescene_toggler.lua
script you saved in step 1. - The script should now appear in the list of scripts within OBS.
- Once the script is loaded in OBS, you should see a property named "Select Scene" in the script's properties pane.
- Use the dropdown list to select the scene you wish to toggle to. (if you don't see your desired scene check the Troubleshooting tab)
- Close the scripts window.
- Navigate to
File
>Settings
>Hotkeys
. - Scroll down to find "Toggle Scene Hotkey".
- Set your desired hotkey for the toggle functionality.
- Click "OK" to save your hotkey setting.
- Now, whenever you press the hotkey, it will toggle between the currently active scene and the predefined scene you selected in the configuration step.
- Ensure the
scene_toggler.lua
script is loaded in the Scripts section. - If the scene doesn't switch, double-check that the scene name in the dropdown list is correct and exists in your OBS.
- If the scene isn't visible in the dropdown click the little refresh button at the bottom left of the window.
- Make sure the hotkey you set isn't already in use by another function in OBS.