obs-websocket icon indicating copy to clipboard operation
obs-websocket copied to clipboard

Requests: Add ToggleSceneItemEnabled

Open theca11 opened this issue 2 years ago • 0 comments

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

  • New request/event
  • Documentation change (a change to documentation pages)

Checklist:

  • [x] I have read the Contributing Guidelines.
  • [x] All commit messages are properly formatted and commits squashed where appropriate.
  • [x] My code is not on master or a release/* branch.
  • [x] The code has been tested.
  • [x] I have included updates to all appropriate documentation.

theca11 avatar Jul 22 '23 10:07 theca11