ObsSetRandomFilterState

Modify the state of a random filter within a scene or source

Signature

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

Parameters

scene
string required

The name of the scene in OBS

state
int required

The new filter state

ValueDescription
0

Visible

1

Hidden

2

Toggle existing state

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.ObsSetRandomFilterState(scene, state);
CPH.ObsSetRandomFilterState(scene, state, connection);