Resource icon

OBS Lua Source toggler 0.0.4

Maximum 1 source visible per configured scene and group
When you make a source visible in a configured scene or group all other sources in that scene or group will become invisible.
This way maximum 1 source is visible in the scene or group.
First release
Last update
4.92 star(s) 12 ratings

More resources from Exeldro

Latest updates

  1. Version 0.0.4

    Fix memory leaks by @WizardCM
  2. Version 0.0.3

    add option to always show one, so you can not make all sources not visible
  3. attach to added/loaded sources

    attach to added/loaded sources

Latest reviews

Works well. Could be a bit more refined, such as 'Always Show' being an option for individually added sources. And removing a source requiring you to restart OBS before it takes effect.
Very unsuspected usefull script, to switch between Overlays scenes gathered in a group.
Create a group "[OVERLAYS]", add a scene, find an existing scene where you have your overlay (with no screen source), and repeat for each other scenes.
With this script, you now need only one click to apply an overlay !
VERY handy for scenes containing the likes of looping media sources, backgrounds, overlays etc. from which you need only one to be visible at any given time.
Works Fine
Great tool!
BEAUTIFUL little plugin that saves a lot of work on my end. Highly recommend if this is a feature you're looking for in a scene or group.
Does exactly what is says!!! Thank you
Exeldro, thank you so much for this script, it is life changing! Not only that, but it toggles some sources more cleanly than hotkeys assigned to multiple sources, such that I don't get a single frame flicker between ones that I used to anymore.
Basically, this script frees you from assigning numerous hotkeys for getting some simple activate toogles.

lets you use just the "unhide" hotkey for the source to hide the other sources.

mini Tutorial:
Lets suppose you want to have a "music player" inside OBS and have some varying genres, like "Tempo", Chill", "Dark" .
+ you put all the individual "VLC media list" sources in a group called "BGM".
+ Assign hotkey to "unhide" them for each of them (alt+numpad1 for tempo, "alt+numpad2" for "Chill" etc.)

Add the script via the scripts panel and specify which groups/scene to be monitored for activity.

After setting that up, you will notice that,as soon as you un-hide "Dark" genre, whatever currently visible isnde that group/folder becomes "invisible" automatically as you tell the script to continuously check for the specified Group/Folder.

Normally you would have to use the same hotkey that you use to un-hide Source A to hide the Sources B C D E etc, and repeat the process for any other sources.

I use this script and deal with numerous groups that lets me switch theme setups, replay collections, music collections and some DIY OSD elements.

Anyways, i am so thankful for this script Exeldro!