Advanced Scene Switcher

Advanced Scene Switcher 1.28.1

93_Minitruckin

New Member
Okay, so I've installed the plugin probably 3 or 4 times, manually and using the installer, and it installs but it's missing almost all the tabs and fuctionality, see attached immage.... I cant figure out where i went wrong, Im just trying to get obs to follow my mouse from screen to screen.
 

Attachments

  • 1658281247320.png
    1658281247320.png
    62.7 KB · Views: 214

THE R3Y3S

Member
Okay, so I've installed the plugin probably 3 or 4 times, manually and using the installer, and it installs but it's missing almost all the tabs and fuctionality, see attached immage.... I cant figure out where i went wrong, Im just trying to get obs to follow my mouse from screen to screen.

Click on "HIde tabs which can be represented via macros" in the bottom left
 

yeorip

New Member
20220722_175535.png

I cleaned up my computer software, and most of the 'advanced scene switcher' top menus have disappeared since then. In particular, the important 'Scene Sequence' menu has disappeared and the traditional method cannot be used.

After reinstalling the OBS and the 'advanced scene switcher' plug-in and cycling the computer, the menu is still not being created.

How should we solve this problem?
 

SillyMcDangle

New Member
Anyone had an issue with this plugin causing games to lag? I got everything set up and tried to play a game with OBS open (not recording or streaming) and I was lagging bad. I even tried disabling everything I had added in Advanced Scene Switcher and it was still doing it. I couldn't figure out what was causing it, but I just uninstalled the plugin and everything runs fine now. Do I try to reinstall and hope it works better this time or is this a known issue? It makes the games unplayable.
 

Warmuptill

Active Member
Anyone had an issue with this plugin causing games to lag? I got everything set up and tried to play a game with OBS open (not recording or streaming) and I was lagging bad. I even tried disabling everything I had added in Advanced Scene Switcher and it was still doing it. I couldn't figure out what was causing it, but I just uninstalled the plugin and everything runs fine now. Do I try to reinstall and hope it works better this time or is this a known issue? It makes the games unplayable.
Can you provide more details as to what you had configured / which functionality you were using?
 
I cannot seem to run bat files with the macros. I have an IRL RTMP server that runs via json. I used a npm start bat file to start the program when I start streaming and a npm killtask bat file to close the program when I end streaming. The bat files work on it's own but the plugins won't run the files.
 

Attachments

  • Capture.PNG
    Capture.PNG
    19.2 KB · Views: 47

Warmuptill

Active Member
I cannot seem to run bat files with the macros. I have an IRL RTMP server that runs via json. I used a npm start bat file to start the program when I start streaming and a npm killtask bat file to close the program when I end streaming. The bat files work on it's own but the plugins won't run the files.
The reason for this can vary a lot without knowing the contents of the script.
So I cannot really give any concrete advice unfortunately.

Can you try adding additional statements to the very beginning of the script, which would indicate whether or not the script is actually being run? (E.g. create a dummy file)

Usually such issues arise if you are using relative paths inside the script, as when the plugin is attempting to run the script these relative paths will resolve to paths relative to the OBS binary and not the scripts location.
 

2pacsaywer

New Member
I've looked for hours across multiple days and can't find anyone even mentioning my issue.

With the Advanced Scene switcher plugin disabled I'll get around 175FPS in a game but then with it enabled the game FPS drops down to between 70-85 FPS. That's a crazy difference. To add on top of it, the game seems to be lagging as if it's dropping frames even though its showing it's still above 70 FPS. Even if I'm not streaming or recording and just have OBS open with the plug-in enabled I have this issue.
 

Warmuptill

Active Member
I've looked for hours across multiple days and can't find anyone even mentioning my issue.

With the Advanced Scene switcher plugin disabled I'll get around 175FPS in a game but then with it enabled the game FPS drops down to between 70-85 FPS. That's a crazy difference. To add on top of it, the game seems to be lagging as if it's dropping frames even though its showing it's still above 70 FPS. Even if I'm not streaming or recording and just have OBS open with the plug-in enabled I have this issue.
Can you please share the settings you are using? (You can export them to a file on the General tab)
 

ozbroady

New Member
Hi.. I was wondering if I could please get some advice... I am running the latest version of this plugin and am hoping to initiate a scene switch based on when a change is made to a TXT file which occurs every 3-4 minutes

Do you have to enter specific matching text into the content field? My issue is that the text contains the name of a random song that is playing, and I dont actually know or care what the text will be, i just want to change the scene automatically whenever the file is updated (ie. last modified timestamp changes)

My config is below - but this is not working automatically. Is there anything else I could try to get this working?


1659702532974.png


Ive also attached the settings TXT

Thankyou :)
 

Attachments

  • adv-ss-Chill8.txt
    3.4 KB · Views: 17

ozbroady

New Member
Hi.. I was wondering if I could please get some advice... I am running the latest version of this plugin and am hoping to initiate a scene switch based on when a change is made to a TXT file which occurs every 3-4 minutes

Do you have to enter specific matching text into the content field? My issue is that the text contains the name of a random song that is playing, and I dont actually know or care what the text will be, i just want to change the scene automatically whenever the file is updated (ie. last modified timestamp changes)

My config is below - but this is not working automatically. Is there anything else I could try to get this working?


View attachment 85319

Ive also attached the settings TXT

Thankyou :)
Disregard this! I found the answer in another forum post. Turns out I just needed to ad .* to the content field and it is working perfectly!! Thanks so much for an awesome plugin.
 

SillyMcDangle

New Member
I've looked for hours across multiple days and can't find anyone even mentioning my issue.

With the Advanced Scene switcher plugin disabled I'll get around 175FPS in a game but then with it enabled the game FPS drops down to between 70-85 FPS. That's a crazy difference. To add on top of it, the game seems to be lagging as if it's dropping frames even though its showing it's still above 70 FPS. Even if I'm not streaming or recording and just have OBS open with the plug-in enabled I have this issue.

Sounds exactly like what mine is doing. It is completely unusable if I have Advanced Scene Switcher enabled.

Can you provide more details as to what you had configured / which functionality you were using?

This happens with nothing configured at all. At one point I had the following:
-2 macros to automatically return to previous scene after a certain time period when two of my scenes were switched to
-scene triggers to mute and unmute desktop audio at the start and end of those timed scenes.
-A bunch of media rules that switch back to previous scene once the videos play through once on the new scenes created for them (scenes were just short video clips)

I uninstalled the plug-in and everything started working again. I reinstalled it and everything still worked until I enabled the plug-in. Once I did that, the dropped frames happened again even with nothing set up in Advanced Scene Switcher at all. I just have it turned off for now, because the dropped frames or lag or whatever is too significant to play through.

Edit: Until this gets fixed, I may try to set up what I'm attempting using multi-actions on my Stream Deck. Not ideal, but I think I can get it to work that way without torpedoing my games.
 

Warmuptill

Active Member
I uninstalled the plug-in and everything started working again. I reinstalled it and everything still worked until I enabled the plug-in. Once I did that, the dropped frames happened again even with nothing set up in Advanced Scene Switcher at all. I just have it turned off for now, because the dropped frames or lag or whatever is too significant to play through.
That is really strange - I will try to investigate.
Did you observe this with previous versions of the plugin as well?
How much CPU time is roughly used up by OBS Studio studio process in that situation?
 

khaver

Member
I'm trying to get a 2 camera, 2 scene set up where the scenes switch based on a pattern match on a display capture of slides. I want the "closeup" scene to be switched to whenever there's a slide with a certain object in the display (a white rectangle that appears at different locations horizontally in the upper 1/8th of the display). I've set up a macro called "Go Close" with a video->matches pattern using a cropped png file of the white rectangle. The action switches to the closeup scene, and unpauses the macro referred to below then pauses itself.

Now this next macro (Go Wide) I want to switch to a wide camera scene whenever a slide that doesn't contain the white rectangle is shown (I can't use a pattern match with this slide because these slides are different every week, only the slides with the white rectangle are consistent, i.e. bible verse slides). I tried setting up a video->does not match, using the same png file of the white rectangle, that then switches to the wide camera scene, unpauses the "Go Close" macro and then pauses itself.

If a slide without the white rectangle is showing and I switch to the wide camera scene, ASS does nothing and keeps it on that scene. Great. But if a slide with the white rectangle is shown, ASS switches to the closeup scene then immediately switches back to the wide camera scene and Go Wide macro ends up unchecked (paused) in the Macros list.

I need guidance in setting this up. Thanks.
 

Warmuptill

Active Member
I'm trying to get a 2 camera, 2 scene set up where the scenes switch based on a pattern match on a display capture of slides. I want the "closeup" scene to be switched to whenever there's a slide with a certain object in the display (a white rectangle that appears at different locations horizontally in the upper 1/8th of the display). I've set up a macro called "Go Close" with a video->matches pattern using a cropped png file of the white rectangle. The action switches to the closeup scene, and unpauses the macro referred to below then pauses itself.

Now this next macro (Go Wide) I want to switch to a wide camera scene whenever a slide that doesn't contain the white rectangle is shown (I can't use a pattern match with this slide because these slides are different every week, only the slides with the white rectangle are consistent, i.e. bible verse slides). I tried setting up a video->does not match, using the same png file of the white rectangle, that then switches to the wide camera scene, unpauses the "Go Close" macro and then pauses itself.

If a slide without the white rectangle is showing and I switch to the wide camera scene, ASS does nothing and keeps it on that scene. Great. But if a slide with the white rectangle is shown, ASS switches to the closeup scene then immediately switches back to the wide camera scene and Go Wide macro ends up unchecked (paused) in the Macros list.

I need guidance in setting this up. Thanks.
I would suggest to setup three macros to handle your requirements:

  1. A macro that check for the existence of the pattern in the video source.
    1.PNG
    The macro does not need any actions as it will only be used to refer to in the other two macros.(The used parameters for the pattern match are just examples of course)
  2. A macro to handle the case in which the conditions of Macro (1) are "true".
    2.PNG

    The "Macro" condition type can be used to refer to the condition state of the "Pattern match" macro (1).
    In this case we want to perform actions in case the pattern is found so we leave the logic type as "If".
    The actions just consist of the "Switch scene" action. (Parameters are just examples once again)
    I would recommend to also check "Perform actions only on condition change" as this will allow you to manually switch away from this scene if it should be necessary.
  3. A macro to handle the opposite of Macro (2).
    3.PNG
    Almost the identical settings as in (2) can be used except that the logic type has to be changed to "If not" to allow switching to the correct scene if the pattern is not found.
    Also the scene you want to switch to in this case has to be adjusted compared to (2). (In this example "test2" is used)
Hope that helps!
Let me know if you have any questions!

Note:
You could also set this up in only two macros, if you like.
Using three macros just makes it more clear which macro does what in this example.
 

AaronD

Active Member
I'm trying to get a 2 camera, 2 scene set up where the scenes switch based on a pattern match on a display capture of slides. I want the "closeup" scene to be switched to whenever there's a slide with a certain object in the display (a white rectangle that appears at different locations horizontally in the upper 1/8th of the display). I've set up a macro called "Go Close" with a video->matches pattern using a cropped png file of the white rectangle. The action switches to the closeup scene, and unpauses the macro referred to below then pauses itself.

Now this next macro (Go Wide) I want to switch to a wide camera scene whenever a slide that doesn't contain the white rectangle is shown (I can't use a pattern match with this slide because these slides are different every week, only the slides with the white rectangle are consistent, i.e. bible verse slides). I tried setting up a video->does not match, using the same png file of the white rectangle, that then switches to the wide camera scene, unpauses the "Go Close" macro and then pauses itself.

If a slide without the white rectangle is showing and I switch to the wide camera scene, ASS does nothing and keeps it on that scene. Great. But if a slide with the white rectangle is shown, ASS switches to the closeup scene then immediately switches back to the wide camera scene and Go Wide macro ends up unchecked (paused) in the Macros list.

I need guidance in setting this up. Thanks.
Warmuptill probably has the right answer, but this general problem seems likely to recur in other forms too. Could you share screenshots of the settings that produce this behavior so we know what to look for and avoid?
 

khaver

Member
Warmuptill, I set my macros exactly as you've shown, but when the slide with the white rectangle is shown, I get the switch to the Sermon scene (the closeup) but then immediately it switches back to the Sermon Wide scene without a change to the slide.
PatternMatch.jpg

GoClose.jpg

GoWide.jpg


Here's an example of a slide with the white rectangle in it.
Slide.jpg


And this is the image the pattern match looks for.
Verses.png


Here's the part of the log where I think this is happening.
Code:
19:05:24.073: [adv-ss] try to sleep for 498
19:05:24.570: [adv-ss] condition scene returned 0
19:05:24.570: [adv-ss] Macro Startup returned 0
19:05:24.570: [adv-ss] condition video returned 0
19:05:24.570: [adv-ss] ignoring condition check 'none' for 'Start Recording 2'
19:05:24.570: [adv-ss] condition scene returned 0
19:05:24.570: [adv-ss] Macro Start Recording 2 returned 0
19:05:24.654: [adv-ss] condition video returned 1
19:05:24.654: [adv-ss] Macro Pattern Match returned 1
19:05:24.654: [adv-ss] condition macro returned 1
19:05:24.654: [adv-ss] Macro Go Close returned 1
19:05:24.655: [adv-ss] condition macro returned 1
19:05:24.655: [adv-ss] Macro Go Wide returned 1
19:05:24.655: [adv-ss] Macro Stop Recording is paused
19:05:24.655: [adv-ss] running macro: Pattern Match
19:05:24.655: [adv-ss] running macro: Go Close
19:05:24.655: [adv-ss] switch to scene 'Sermon'
19:05:24.694: User switched to scene 'Sermon'
19:05:24.694: [adv-ss] switched scene
19:05:26.942: [adv-ss] running macro: Go Wide
19:05:26.942: [adv-ss] switch to scene 'Sermon Wide'
19:05:26.943: [adv-ss] current scene:  Sermon
19:05:26.944: [adv-ss] previous scene: Sermon Wide
19:05:26.962: User switched to scene 'Sermon Wide'
19:05:26.962: [adv-ss] switched scene
19:05:26.978: [adv-ss] detected busy loop - refusing to sleep less than 1ms
19:05:26.978: [adv-ss] try to sleep for 50
19:05:26.980: [adv-ss] current scene:  Sermon Wide
19:05:26.980: [adv-ss] previous scene: Sermon
19:05:27.029: [adv-ss] condition scene returned 0
19:05:27.029: [adv-ss] Macro Startup returned 0
19:05:27.029: [adv-ss] condition video returned 0
19:05:27.029: [adv-ss] ignoring condition check 'none' for 'Start Recording 2'
19:05:27.029: [adv-ss] condition scene returned 0
19:05:27.029: [adv-ss] Macro Start Recording 2 returned 0
19:05:27.079: [adv-ss] condition video returned 1
19:05:27.079: [adv-ss] Macro Pattern Match returned 1
19:05:27.079: [adv-ss] ignore match for Macro Pattern Match (on change)
19:05:27.079: [adv-ss] condition macro returned 0
19:05:27.079: [adv-ss] Macro Go Close returned 0
19:05:27.079: [adv-ss] condition macro returned 0
19:05:27.079: [adv-ss] Macro Go Wide returned 0
19:05:27.079: [adv-ss] Macro Stop Recording is paused
19:05:27.081: [adv-ss] try to sleep for 448
 

AaronD

Active Member
Warmuptill, I set my macros exactly as you've shown, but when the slide with the white rectangle is shown, I get the switch to the Sermon scene (the closeup) but then immediately it switches back to the Sermon Wide scene without a change to the slide.
View attachment 85350
View attachment 85348
View attachment 85349

Here's an example of a slide with the white rectangle in it.
View attachment 85351

And this is the image the pattern match looks for.
View attachment 85352

Here's the part of the log where I think this is happening.
Code:
19:05:24.073: [adv-ss] try to sleep for 498
19:05:24.570: [adv-ss] condition scene returned 0
19:05:24.570: [adv-ss] Macro Startup returned 0
19:05:24.570: [adv-ss] condition video returned 0
19:05:24.570: [adv-ss] ignoring condition check 'none' for 'Start Recording 2'
19:05:24.570: [adv-ss] condition scene returned 0
19:05:24.570: [adv-ss] Macro Start Recording 2 returned 0
19:05:24.654: [adv-ss] condition video returned 1
19:05:24.654: [adv-ss] Macro Pattern Match returned 1
19:05:24.654: [adv-ss] condition macro returned 1
19:05:24.654: [adv-ss] Macro Go Close returned 1
19:05:24.655: [adv-ss] condition macro returned 1
19:05:24.655: [adv-ss] Macro Go Wide returned 1
19:05:24.655: [adv-ss] Macro Stop Recording is paused
19:05:24.655: [adv-ss] running macro: Pattern Match
19:05:24.655: [adv-ss] running macro: Go Close
19:05:24.655: [adv-ss] switch to scene 'Sermon'
19:05:24.694: User switched to scene 'Sermon'
19:05:24.694: [adv-ss] switched scene
19:05:26.942: [adv-ss] running macro: Go Wide
19:05:26.942: [adv-ss] switch to scene 'Sermon Wide'
19:05:26.943: [adv-ss] current scene:  Sermon
19:05:26.944: [adv-ss] previous scene: Sermon Wide
19:05:26.962: User switched to scene 'Sermon Wide'
19:05:26.962: [adv-ss] switched scene
19:05:26.978: [adv-ss] detected busy loop - refusing to sleep less than 1ms
19:05:26.978: [adv-ss] try to sleep for 50
19:05:26.980: [adv-ss] current scene:  Sermon Wide
19:05:26.980: [adv-ss] previous scene: Sermon
19:05:27.029: [adv-ss] condition scene returned 0
19:05:27.029: [adv-ss] Macro Startup returned 0
19:05:27.029: [adv-ss] condition video returned 0
19:05:27.029: [adv-ss] ignoring condition check 'none' for 'Start Recording 2'
19:05:27.029: [adv-ss] condition scene returned 0
19:05:27.029: [adv-ss] Macro Start Recording 2 returned 0
19:05:27.079: [adv-ss] condition video returned 1
19:05:27.079: [adv-ss] Macro Pattern Match returned 1
19:05:27.079: [adv-ss] ignore match for Macro Pattern Match (on change)
19:05:27.079: [adv-ss] condition macro returned 0
19:05:27.079: [adv-ss] Macro Go Close returned 0
19:05:27.079: [adv-ss] condition macro returned 0
19:05:27.079: [adv-ss] Macro Go Wide returned 0
19:05:27.079: [adv-ss] Macro Stop Recording is paused
19:05:27.081: [adv-ss] try to sleep for 448
Go Close and Go Wide both have the condition of "If..." One of them should be "If not..."
 
Top