Skip to content

Disabling Studio Mode causes trigger #1326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MythicPalette opened this issue Mar 14, 2025 · 2 comments
Open

Disabling Studio Mode causes trigger #1326

MythicPalette opened this issue Mar 14, 2025 · 2 comments

Comments

@MythicPalette
Copy link

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

31.0.1

Advanced Scene Switcher Version

1.28.1

Plugin settings

AAAfGnic7Vdtb9s2EP4rBj8WlmHJdmr7W2wna4ClyWqvX4aioKiTTFgWBZJy4xr+7ztSL5aTtF0xLNMWBQhA3/FeeM9zFO9AtpRJocj0jwNJ6BbIlPwiRZZ2XNIlkVmRqZYZFD8WVFMyPRAm4pimCgIyDWmsUK34VzT2jsfuyZFIoHP5he5ProrNKc0ULOkOZrCmOy4kmfYLaW2PpHEMcSUQyXxNkwjKhNSGp1cPwO6SpaZSnzLRIr1kmotE3YTvhV5gGpXSxF0Lqedcsozrqx2NM2r21nfMM/SxnYsk4EY1XwPb3CQaJO6u9rHvbjoQ4xlqi37Pmzz66xK9T43qiGETrm0VdiCVzcdFaSDYZgla8yRSxpeEiCuMUWWxpupDlswyrY1JXhiU3ZtSPpFinXSmfqV+raprHq1j/Nc3YXUWtZLZqWSy9L+CB0yRYDxSgHUmtzGJOclT3e+5DLXsLEieUbHpFL9DJXRM2r0zi2uT0PdMbMbGxtTtBslJaLBTyrEkd4zQmQTMD4OB7wQXwJwhsLeOP/FDJwR/SC9GwNhoTB6hYM1zSlUBl2nMNSJxLxTP+YMdlJpOckdj0wR27Q3d46fCwRXmljv5tq3Xn1S2fWNZAv5O6A3s1XkH5UK0/lRVvS7SIopiuH8sPtXTxlUQbSHRdZY97e6qKc7Jw+oycrvvxHaJJeOm+IpBYjCPRcSZJXeQSdtttyLgITc8PhDNt/AZk1JaUp7kTaDAZKme76P+j/oGxTb0EmJgeYEPpUm3vJ3spYEn7iwFbjiWPl17ERl00Ir03iyNo94bYmuwkjTJIVtRGYG2ylOjQAQPSJCQRyYgJNSPq9sqNdFq14dICwjMIepse0lE3L7XKExmH2bNQQJbhbIX6ROaBVzgufI8gzLREpjnKu79uOLd3O9SZJLBc9V+P+9cizgA2bmP6R6BP5YnRv94aQl0Wnya1T5hd2GoQNdRr2fg05gm7JwUo/oGZBLb1NRuXbkTcbatG7tnzrEO58pHhAtpUMFr1qvypF8oPz0MqI8ffnMD7+DaGpxAW/ileZ7JYlYL53jD83BVkQf/cLv+S8S4RDUYMBtEiJfnQ/HrOUJMJq+LELecdS5t6JYRLSMMIz7eLVou/DwX8E0B1Rig8vc4T9JMf6SSGwCtrDZDvwMzCQn7hW7H6HaMbsoYDf7o7Xg8HjpBP7hwhgH4jh+EnjMI3aE3cscwHvzdMbpfG6MnPzlGj/7HY7TbqJGtHaPNYQeNwqQdo9sxuoHvIq//ut7ITRyjEfQmUeK1jU2NHKRbTrSj9H+RDX9xmEbpri4oS/1bBlkpqbwSt+eNey45/gncwnXd

OBS Studio Log URL

No response

OBS Studio Crash Log URL

No response

Expected Behavior

I have my macro set as so

Image

When "Starting Soon" is the Preview Scene in Studio Mode and then I turn studio mode off, this should not trigger as the "Current scene" has not changed at all, Studio Mode was just disabled.

Current Behavior

When "Starting Soon" is the Preview Scene in Studio Mode and then I turn studio mode off, this macro will trigger, without fail. This, unfortunately, leads to my mic and game audio getting muted and my brb music fading in. Then I have to manually go into my OBS and reset the audio.

Steps to Reproduce

  1. Create two Scenes (scene A and scene B for demonstrative purposes)
  2. Create a macro that triggers "if current scene is scene B"
  3. Turn studio mode ON
  4. Set Scene A as the current scene and Scene B as the preview scene.
  5. Turn off Studio mode.
  6. Notice that this will cause the macro to trigger even though the current scene has not changed.
    ...

Anything else we should know?

No response

@WarmUpTill
Copy link
Owner

This seems to be triggered by the implementation on OBS side.
Leaving the "Studio Mode" involves multiple scene switches, which are called here:

https://github.com/obsproject/obs-studio/blob/5e3b28d66787f111fb5beceedb4430311a7ba66c/frontend/widgets/OBSBasic_StudioMode.cpp#L248

First a scene switch seems to be triggered to the "Preview scene" (maybe because the "private" source, which previously represented the "Program scene" is being destroyed), which is then immediately followed by a scene switch to the non-private source of the "Program scene".

These scene switch events are sent out before the events informing about the studio mode change.
So I can't think a of reliable way to catch that on my side, unfortunately.

You could however use the following workaround:

Image

This should hopefully be barely noticeable during regular use and prevents those very quick scene switches, which are happening after leaving studio mode, triggering the condition.
(The same workaround should probably be applied for the BRB condition)

I apologise for not being able to provide a proper solution!

@MythicPalette
Copy link
Author

I will give this a go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants