obs-websocket
obs-websocket copied to clipboard
Requests: Add ToggleSceneItemEnabled
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:
- Fetch
sceneItemIdvalue withGetSceneItemId 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
masteror arelease/*branch. - [x] The code has been tested.
- [x] I have included updates to all appropriate documentation.