cpyarger / obs-midi

Use MIDI devices to trigger events in OBS and vice versa
https://obs-midi.org
GNU General Public License v2.0
170 stars 20 forks source link

Add action for 'Set Source Visibility' #181

Open Aphadion opened 2 years ago

Aphadion commented 2 years ago

I have a use case where I have a set of several sources, and I would like to be able to select which one from the set is active, disabling all the others (by setting a MIDI signal to both enable a target source and disable a number of other target sources, rather than toggling them)

cpyarger commented 2 years ago

This is why OBS has scenes. And the ability to do nested scenes.

Check out this YouTube video

https://youtu.be/Sc2AiVFeDs8

Aphadion commented 2 years ago

Thanks, but the reason I need this is to change which sources are being used within nested scenes already. I.E. I have 'main' scenes which are layouts of dynamic nested 'source scenes' which contain multiple sources each.

For example, lets say I have 4 things I want to show in each corner of the screen, frames A B C and D, and an alternate scene where I show A and B side by side.... A B C and D are nested scenes each with a list of sources of what I can show in each corner, I want to be able to MIDI trigger that in nested scene A, to disable sources 1-3 and enable source 4, for instance, then switch scene A to show source 2, disabling sources 1,3 and 4. right now, the best I can do is cover up another source which can create problems due to which scenes showing in a nested scene is still source order dependent.

I appreciate the video, but I haven't found a better way of doing this, even with nested scenes yet.

Aphadion commented 2 years ago

If 'Toggle source visibility' became 'Set source visibility' with the option of 'enable' 'disable' and 'toggle', this would more than solve my use case.

As well, thank you for your work on all the plugins you do. I'm a terrible coder, otherwise I'd try to make my own mod to handle this myself.

cpyarger commented 2 years ago

Something like this will probably be available once I have the macros system released