New Member

Only feature I'd like is a "toggle" source option. Currently forced to use two buttons with two different command parameters for a single source to be on or off, would be better to just toggle its state with one command.

New Member

Only feature I'd like is a "toggle" source option. Currently forced to use two buttons with two different command parameters for a single source to be on or off, would be better to just toggle its state with one command.

Stream deck has toggle button for hotkeys and OBS sources running on the local machine, no toggle for executing external applications.

Looking at the documentation, toggle is very much possible if you perform two actions instead of relying on just one. GetSourceSettings to get the current visibility state, then SetSourceSettings to set visibility to the opposite of its current state.

New Member

New Member

Stream deck has toggle button for hotkeys and OBS sources running on the local machine, no toggle for executing external applications.

Looking at the documentation, toggle is very much possible if you perform two actions instead of relying on just one. GetSourceSettings to get the current visibility state, then SetSourceSettings to set visibility to the opposite of its current state.

You are correct! This is new in the latest websocket plugin version!
I managed to implement this new command but unfortunately, it is not working correctly. With GetSourceSettings I only get the correct state (visible = True or False) from sources ONCE after OBS started up, after that no matter if I manually hide or unhide a source or do it via websocket-plugin, it always returns the initial state. I will keep an eye on this...

You're welcome!
I would have already released it, but with that other unfinished feature not working as it should, I am currently holding it back.
So far no other features (of what's possible via websocket-plugin) have been requested.
And since I don't even use OBSCommand myself, I'm not adding more features just for fun ;)