obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.86k stars 707 forks source link

Requests: Add ToggleSceneItemEnabled #1154

Open theca11 opened 1 year ago

theca11 commented 1 year ago

Description

Adds a new request called ToggleSceneItemEnabled which toggles the enable state of a scene item and returns the new state.

Motivation and Context

Closes #1153

How Has This Been Tested?

Tested OS(s): Windows 10 (22H2 19045) New request tested with the help of obs-websocket-js lib:

  1. Fetch sceneItemId value with GetSceneItemId
  2. const {sceneItemEnabled} = obs.call('ToggleSceneItemEnabled', {sceneName: 'My scene', sceneItemId: 1234});

Types of changes

Checklist: