Scene switching based on Chrome tabs

jrhoads

New Member
I've been digging into both Automatic and Advanced Scene Switcher and can't seem to get it to switch scenes based on which tab is currently in focus other than using cursor location. I have several webpages that need to have their own scenes and interactions. The OBS native browser just can't do it, so I'm using the normal Window Capture route. (I am more of noob than I thought I was apparently.) How do I get OBS to recognize the various Chrome tabs? Is there even a way to do it?
Much help appreciated in advanced.
 

Warmuptill

Active Member
Since Chrome changes its window title depending on what tab is in focus you should be able to set this up using both the Automatic and the Advanced Scene Switcher.

This is what it would look like in the Automatic Scene Switcher:

1727523770826.png


In the Advanced Scene Switcher you can set up a macro with a "Window" condition and "Switch scene" action to achieve the same:

1727523699029.png


You can uncheck "Window is focused" if you want the scene switch to happen even if the Chrome application itself is not the current foreground window.
 

jrhoads

New Member
The problem is that the "Current focus window:" always comes back as "Window" and nothing else. Something tells me this is a macOS sandbox problem?
 

Attachments

  • SCR-20241004-jfxl.png
    SCR-20241004-jfxl.png
    45.2 KB · Views: 9

Warmuptill

Active Member
The problem is that the "Current focus window:" always comes back as "Window" and nothing else. Something tells me this is a macOS sandbox problem?
I might be.
To be honest I am not too familiar with MacOS.
I perform tests for the plugin in a VM which runs Big Sur so they might not be valid for more up to date versions of macOS.

At least with Big Sur it used to work like described above:

1728133369976.png

1728133589320.png

1728133478310.png


Alternatively you might be able to use the "Video" condition to detect which tab is currently in focus, if there are certain elements clearly identifying each tab.
 

jrhoads

New Member
Nope....It seems like I can (sometimes) see the application window but not the title of the tab. The link below is how it looks for me. It works for the other applications, but Chrome on Mac seems to be the problem. Even after naming the Chrome window something specific, it doesnt seem to see it. Ive tried regex expressions as well to no avail...


And the video condition doesnt seem to work either.

Obviously I can use my stream deck to switch scenes, but I would like to be able to focus more on the tutorial for my students.

Anymore ideas?
 
Top