ObsIsFilterEnabled

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

Signature

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

Parameters

scene
string required

The name of the scene in OBS

filterName
string required

The name of the filter in OBS Studio

connection
int
Default:
0

Optional index of the OBS connection, defaults to the first connection.

Zero-indexed based on the order you see in Stream Apps > OBS Studio

e.g. The first client in the list is 0, the second client in the list is 1, and so on...

source
string

The name of the source in OBS

Return Type

bool

Example

CPH.ObsIsFilterEnabled(scene, filterName);
CPH.ObsIsFilterEnabled(scene, filterName, connection);