Script for OBS that allows showing and hiding scene elements (sources) based on the currently selected profile.
- Download the script from the releases page
- Add it to OBS using
Tools
→Scripts
(make sure you have Python Settings properly set up) - [Optional] Configure the
Regex Pattern
in script settings (hover over the?
to see examples) - Add
[profile:Profile Name]
to each source you want to show only when that profile is selected
With this setup, there are two profiles: YouTube
and Twitch
. When changing profiles, the appropriate chat will be
shown.
You can put multiple profiles on one item, anywhere in the name.
Example: Chat [profile:YouTube] [profile:Twitch]
would show when either the YouTube
or Twitch
profile is
selected, but not when Local recording
is.
This script also works with groups and scenes-as-sources for more complex scenarios.
Source visibility is updated when the profile or scene changes. So if you are adding/renaming sources and their visibility isn't updating, change the scene back and forth.
Thanks to Circus for the idea!