Advanced Scene Switcher

Advanced Scene Switcher 1.28.1

Apathium

New Member
Hi,

I am typically using the region mode of the plugin to record the screen that I'm active on. 3 screens = 3 scenes; (say A, B, C).

I want to be able to switch to another scene (D) with a hotkey, deactivating region checks at the meantime, and go back to region checks when I push the same hotkey. Is this possible?

Below is what I tried. I was able to get OBS to switch to D, but only for a milisecond and the region check switches it back to respective scene.

- Created 2 macros:
* If the scene is not D, and the hotkey is pressed; then the scene would switch to D, and plugin state stops OBS (tried with and without this last bit).
* If the scene is D, and the hotkey is pressed; then scene would switch to B.
- Added separate pause condition when scene is D.
- Prioritized Macro over Screen Region

Thank you in advance.
 

Warmuptill

Active Member
Hi,

I am typically using the region mode of the plugin to record the screen that I'm active on. 3 screens = 3 scenes; (say A, B, C).

I want to be able to switch to another scene (D) with a hotkey, deactivating region checks at the meantime, and go back to region checks when I push the same hotkey. Is this possible?

Below is what I tried. I was able to get OBS to switch to D, but only for a milisecond and the region check switches it back to respective scene.

- Created 2 macros:
* If the scene is not D, and the hotkey is pressed; then the scene would switch to D, and plugin state stops OBS (tried with and without this last bit).
* If the scene is D, and the hotkey is pressed; then scene would switch to B.
- Added separate pause condition when scene is D.
- Prioritized Macro over Screen Region

Thank you in advance.
I would recommend to use macros also for your screen region scene switches, similar to this one:
RegionExample.PNG

This will allow you to set up hotkeys to pause these individual macros.
Hotkey.PNG

Then you could use the same hotkey to switch to your scene "D".

Unfortunately using the same hotkey to unpause these macros and return to region based scene switching does not work as the pause / unpause hotkey would conflict with each other.
I will make sure to add a "toggle" hotkey in future.

(You could get it to work with just a single hotkey if you add additional macros to just control the pause state of the "cursor" macros, but I will just quickly implement the toggle hotkey feature instead and update this post once a build is available)

Update: A build which will allow you to define a hotkey to toggle the pause state of macros will be available here in a few minutes:
TogglePause.PNG

Note that you have to be logged into GitHub to be able to download it - let me know if that is an issue.
 
Last edited:
Is there a way to create a keybind to switch profiles? Instead of opening Advanced Scene Switcher, clicking 'Import Profile', and selecting the profile, is there a way to just create a keybind for certain profiles? Thanks.
 

Apathium

New Member
I would recommend to use macros also for your screen region scene switches, similar to this one:
View attachment 77550
This will allow you to set up hotkeys to pause these individual macros.
View attachment 77552
Then you could use the same hotkey to switch to your scene "D".

Unfortunately using the same hotkey to unpause these macros and return to region based scene switching does not work as the pause / unpause hotkey would conflict with each other.
I will make sure to add a "toggle" hotkey in future.

(You could get it to work with just a single hotkey if you add additional macros to just control the pause state of the "cursor" macros, but I will just quickly implement the toggle hotkey feature instead and update this post once a build is available)

Update: A build which will allow you to define a hotkey to toggle the pause state of macros will be available here in a few minutes:
View attachment 77558
Note that you have to be logged into GitHub to be able to download it - let me know if that is an issue.

Awesome! Big thanks for the support.
 

Warmuptill

Active Member
Is there a way to create a keybind to switch profiles? Instead of opening Advanced Scene Switcher, clicking 'Import Profile', and selecting the profile, is there a way to just create a keybind for certain profiles? Thanks.
Unfortunately not, but I will look into it.
Thanks for the suggestion!
 
Apologies if this has already been covered, but coming back to this after a long absence. Is there any other way or interacting with the plugin other than hotkeys (i.e. websocket)?
Would be good to be able to toggle the switcher, and have feedback on whether it is active. One example is it would be great to be able to have a toggle button on a Stream Deck.
 

qwe1154323937

New Member
你好,这个插件真的很好用,方便很多人。我在 1.16.4 版本中遇到了一些错误。我在这里反馈给你。使用宏功能时,插件状态和隐藏某些场景的状态,删除宏。原始场景不会恢复,仍然隐藏。只有在调用宏的显示时才会出现。我不确定这是一个功能还是一个错误,如果这是一个错误,其他功能应该是相同的。
因为我所在的地区是中国,所以不能完全依赖英文的本地化文档。我看到大部分的原始本地化文本都已翻译,但后来没有更新此类信息。因此,我通过翻译软件进一步更新了中文本地化,并亲自测试了各个子模块的功能。当然,有些可能不完全正确,因为语言问题,我不能完全理解作者的意思,但大部分都可以让用户理解一些东西。我期待你的更新。我会把这个插件做成插件推荐的OBS教程和视频,放到BiliBili上。
谢谢!
 

Attachments

  • zh-CN.txt
    46.5 KB · Views: 18

qwe1154323937

New Member
Hello, this plug-in is really easy to use and convenient for many people. I encountered some errors in version 1.16.4. I'll give you feedback. When using the macro function, the plug-in status and the status of some scenes are hidden, and the macro is deleted. The original scene will not be restored and is still hidden. Appears only when the macro is displayed. I am really a function or an error. If this is an error, other functions should be the same.
Because I belong to China, I can't completely rely on Chinese documents. I saw most of the translated original localized text, but there was no updated error message. Therefore, I further updated the Chinese localization through the software, and personally tested the functions of each sub module. Of course, it may not be completely correct. Because of the language problem, I fully understand the author's English, but most of them can let users understand things. I may wait for you to update. Plug in recommended OBS tutorials and videos, open BiliBili.
thank you!
It's terrible. Google browser Chinese culture the English text I want to send, and then I sent it out. It would have been difficult to explain some words through the translation software. Now it's even more difficult. If you have more questions, you can reply to me.
 

Warmuptill

Active Member
Apologies if this has already been covered, but coming back to this after a long absence. Is there any other way or interacting with the plugin other than hotkeys (i.e. websocket)?
Would be good to be able to toggle the switcher, and have feedback on whether it is active. One example is it would be great to be able to have a toggle button on a Stream Deck.
Unfortunately not yet.

To be honest I am not familiar with how the stream deck functions.
Can you give an example of an OBS plugin that interacts with the stream deck?
That might help me getting started.

Thanks for the suggestion!

Thank you very much for providing the updated translations!
Can you elaborate on what is causing issues? Unfortunately I don't quite understand what the problem is.
 

qwe1154323937

New Member
Unfortunately not yet.

To be honest I am not familiar with how the stream deck functions.
Can you give an example of an OBS plugin that interacts with the stream deck?
That might help me getting started.

Thanks for the suggestion!


Thank you very much for providing the updated translations!
Can you elaborate on what is causing issues? Unfortunately I don't quite understand what the problem is.

macro
Create a new macro and create a satisfied condition above.
Create a plug-in status below, select a text and set it to be hidden when the above conditions are met.
Then delete the macro and close the scene switcher.
When you try to display this text in the scene, it will not be displayed. It will appear normally only when it is displayed by the instructions created by the macro.
I don't know if this is a bug. If so, other similar functions may have such problems.
 

Warmuptill

Active Member
macro
Create a new macro and create a satisfied condition above.
Create a plug-in status below, select a text and set it to be hidden when the above conditions are met.
Then delete the macro and close the scene switcher.
When you try to display this text in the scene, it will not be displayed. It will appear normally only when it is displayed by the instructions created by the macro.
I don't know if this is a bug. If so, other similar functions may have such problems.
Are you referring to the option to globally disable a source?
DisableSource.PNG

If so, then this is expected.

If not, can you please create an example of the settings that are causing issues, export them on the general tab, and share them with me?
Just to make sure we are talking about the same thing :)
 

qwe1154323937

New Member
Are you referring to the option to globally disable a source?
View attachment 77685
If so, then this is expected.

If not, can you please create an example of the settings that are causing issues, export them on the general tab, and share them with me?
Just to make sure we are talking about the same thing :)

This is the way you set in the picture, but so are many other functions. Deleting a macro will not stop it. It is still valid and can only be stopped through the macro.
Since it is intentionally retained by you, it means that there is no problem. If it is possible to give it a hint in an eye-catching position, I believe many live broadcasts with obs. Without basic knowledge, it is difficult for them to understand what is going on.
Thank you for your help,
 

Warmuptill

Active Member
This is the way you set in the picture, but so are many other functions. Deleting a macro will not stop it. It is still valid and can only be stopped through the macro.
Since it is intentionally retained by you, it means that there is no problem. If it is possible to give it a hint in an eye-catching position, I believe many live broadcasts with obs. Without basic knowledge, it is difficult for them to understand what is going on.
Thank you for your help,
I think what you might be looking for instead is the "scene item visibility" action type.
SceneItemVisibility.PNG
 

Laczkó

New Member
Now I've made a short test to analyze my most common problem with the plugin. That is the needed scene change, when a source played to end, but it almost never executed by the Advanced Scene Switcher.

I've attached the log file from this session. The macro 'Teletext' is set up to change to scene 'Teletext' if playlist 'mozgó spotok' played to end.
There is a line in the log:
13:25:16.508: [adv-ss] Macro Teletext returned 1
In all other place, where 'Macro Teletext' is appear, it returned 0 and this is about the time, when playlist 'mozgó spotok' have ended, so I suppose the '1' means that the tested condition is true. But didn't changed it here to scene 'Teletext' (did nothing at all). So it seems that the detection of the condition works fine, but the execution of the command for that condition is not.
 

Attachments

  • 2021-12-06 13-19-09.zip
    331.9 KB · Views: 21

Warmuptill

Active Member
I turned on verbose logging, strangly that in itself changed how Advanced Scene Switcher work. Fortunately in a positive way, now it work better, however here is a log, which ends when Advanced Scene Switcher inactivate itself for an unknown reason:
(I linked it, because it's too big to attach here.)
Now I've made a short test to analyze my most common problem with the plugin. That is the needed scene change, when a source played to end, but it almost never executed by the Advanced Scene Switcher.

I've attached the log file from this session. The macro 'Teletext' is set up to change to scene 'Teletext' if playlist 'mozgó spotok' played to end.
There is a line in the log:
13:25:16.508: [adv-ss] Macro Teletext returned 1
In all other place, where 'Macro Teletext' is appear, it returned 0 and this is about the time, when playlist 'mozgó spotok' have ended, so I suppose the '1' means that the tested condition is true. But didn't changed it here to scene 'Teletext' (did nothing at all). So it seems that the detection of the condition works fine, but the execution of the command for that condition is not.
Thank you for the logs!
Now it would be very helpful to also know what you have configured in the plugin.
So it would be great if you could export your current settings to a file and share it with me.
The option to do so can be found on the general tab.
You of course do not have to share it publicly here if you do not want to - so feel free to start a private conversation.

But I have a suspicion already what might be causing your trouble:
A "cooldown" period seems to be configured during which actions by the scene switcher will be ignored.
13:25:16.508: [adv-ss] cooldown active - ignoring match

Can you please try disabling this option by setting the cooldown to 0.00 seconds?

Cooldown.PNG
 

foxkillf

New Member
Hey there, I am trying to create automation that when i click on the "stop recording" button after i finish recording i want the scene to change into empty scene that don't contain anything.

I have tried to play around with the macro option but nothing i did worked.
Untitled-1.jpg


I have tried almost every commendation with the "recording stopped" option but none of them work. This example transfer me to the scene even if there is no recording.

Is that possible to do want I want and activate action only when on "stop recording" but don't run it when the OBS not recording at all?
 

lindenkron

Member
Hey Warmuptil!

Suggestion for an improvement to the UX. Being able to double click Arguments entries in the 'Run' list, so that they open with an editable field like the 'Add New argument'. Very useful for grabbing previously added things, or simply editing them to new paths - instead of having to delete them and add a new one.

1638940543375.png


Hope you have a great Holiday season :)
 
Top