Filters

C# Methods for OBS > Filters

ObsHideFilter

Disable an OBS filter

public void ObsHideFilter(string scene, string source, string filterName, int connection = 0)
public void ObsHideFilter(string scene, string filterName, int connection = 0)

ObsHideScenesFilters

Disable all filters for a given scene

public void ObsHideScenesFilters(string scene, int connection = 0)

ObsHideSourcesFilters

Disable all filters for a given scene and source

public void ObsHideSourcesFilters(string scene, string source, int connection = 0)

ObsIsFilterEnabled

Check if a filter is enabled for a given scene/source

public bool ObsIsFilterEnabled(string scene, string source, string filterName, int connection = 0)
public bool ObsIsFilterEnabled(string scene, string filterName, int connection = 0)

ObsSetFilterState

Set the state of an OBS filter.
State => 0 = enable, 1 = disable, 2 = toggle

public void ObsSetFilterState(string scene, string source, string filterName, int state, int connection = 0)
public void ObsSetFilterState(string scene, string filterName, int state, int connection = 0)

ObsSetRandomFilterState

Set the state of a random OBS filter within a scene and/or source
State => 0 = enable, 1 = disable, 2 = toggle

public void ObsSetRandomFilterState(string scene, string source, int state, int connection = 0)
public void ObsSetRandomFilterState(string scene, int state, int connection = 0)

ObsShowFilter

Enable an OBS filter

public void ObsShowFilter(string scene, string source, string filterName, int connection = 0)
public void ObsShowFilter(string scene, string filterName, int connection = 0)

ObsToggleFilter

Toggle the state of an OBS filter

public void ObsToggleFilter(string scene, string source, string filterName, int connection = 0)
public void ObsToggleFilter(string scene, string filterName, int connection = 0)