nhielost / obs-midi-mg

Allows MIDI devices to interact with OBS Studio.
GNU General Public License v2.0
142 stars 8 forks source link

[feature request] target a Source by name independent from the Scene #107

Open lmerkens opened 5 months ago

lmerkens commented 5 months ago

Some Sources e.g. your main camara (or the group your face cam is included) tend to be used in multiple scenes. In a lot of scenarios it would be useful to have only one set of bindings|actions to control e.g. scale, position, visibility etc. of this video source independent on the currently active scene.

nhielost commented 5 months ago

Hello!

Unfortunately, I am unable to achieve this behavior within the plugin due to what OBS Studio allows me to change with sources. Specifically, Video Sources actions must have a scene attached to them or the action fails.

However, I can offer a potential workaround. You could add all the necessary sources, groups, etc. to another "hidden" scene (if you will), and use that scene as an overlay over any other scenes that require those sources. Then, you can use the plugin to move those sources around on that hidden scene to have a similar effect to what you desire.

Hope this helps!

lmerkens commented 5 months ago

Thanks, I will give this a try.

lmerkens commented 5 months ago

I just got an idea. For many cases something like "current scene (if applicable)" would probably be sufficient. When handling a midi event you "just" had to check, if there is a matching source in the "current scene".

nhielost commented 3 months ago

Hello again!

Unfortunately, I do not believe this is possible either, as the plugin would become very slow when executing this type of action. Not only would the plugin have to check the current scene's sources, it would also have to make sure that the source you wanted was actually in that scene. With enough scenes and sources, this would take a very long time.

Additionally, the configuration menu would have to change a lot in order to accommodate this action, and I don't think that it is worthy of such change.

Thanks for the suggestion though!