Set Source Visibility State
Show or hide a source
Parameters
Connection
Select
Default:
Default
Select the configured OBS Studio Connection to connect to
| Value | Description |
|---|---|
Default | Only the default configured OBS Studio connection |
Any | All configured OBS Studio connections |
Scene
Combobox
Select a scene from the list populated from OBS Studio
You can also manually type a name into the box, or utilize
%variable% syntax to insert an argument value.Source
Combobox
Select a source from the list populated from OBS Studio
You can also manually type a name into the box, or utilize
%variable% syntax to insert an argument value.State
Select required
Select the state for the source visibility state
| Value | Description |
|---|---|
Visible | Set the source visibility to visible |
Hidden | Set the source visibility to hidden |
Toggle | Toggle the source visibility between visible and hidden |
Variables
| Name | Type | Description |
|---|---|---|
| No data | ||
C# Usage
public void ObsSetSourceVisibility(string scene, string source, bool visible, int connection = 0)