ObsToggleFilter

Toggle the state of an OBS filter

Signature

public void ObsToggleFilter(string scene, string filterName, int connection = 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...

Return Type

void

Example

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