ObsSetRandomFilterState
Modify the state of a random filter within a scene or source
Signature
public void ObsSetRandomFilterState(string scene, string source, int state, int connection = 0 = 0);
Parameters
scene
string required
The name of the scene in OBS
state
int required
The new filter state
| Value | Description |
|---|---|
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...
source
string
The name of the source in OBS
Return Type
void
Example
CPH.ObsSetRandomFilterState(scene, state);
CPH.ObsSetRandomFilterState(scene, state, connection);