Warmuptill
Active Member
The check whether a source is active will not be useful for your particular scenario, as a game capture source can be "active" even though there is not application being captured at the moment.I guess I am not the first person asking this but I couldn't find an answer.
My issue is that I can't find a way to change scenes depends on if source(game capture) is active.
I've tried using Macros but it doesn't work. I'm not sure what does "is active" means. But I guess it means if that game is opened.
So I want to switch scenes from "League of Legends Client" to "League of Legends Game" when a game capture source capturing LoL Game inside "League of Legends Game" scene is running. And when it's not running, switch back to "League of Legends Client". But when I do it, it always switches to "League of Legends Game" scene for some reason. And if it helps, my game is on Borderless mode.
This is macros I've made:View attachment 78983View attachment 78984
Instead it will probably make the most sense to check whether or not the particular application is running using the "Process" condition type.
(In the above example Firefox is used as I am not sure what the League of Legends process is called exactly.)
Alternatively you could also instead check the window title of the current foreground window.
If that should suffice for your use case you do not even need this plugin as OBS ships with the "Automatic scene switcher" tool which will allow you to do just that.
Let me know if that helps or if you have further questions! :)