Advanced Scene Switcher

Advanced Scene Switcher 1.30.2

daisycody

New Member
I am using two .mp4 video files. I had only 2 macros, the when I added a third to continue on, then the video output was quickly switching among the 3 videos.
I am having some success using the media Tab in the center of ASS, but when I try to use 2 individuals macros nothing happens. I tried going to OBS Version 3.1.0 but no luck. Is there earlier version of ASS I could try?
 

nojonsko

New Member
hi :)
i'm trying to set up adv-SS to automatically switch between games & my desktop. however, i think i may have set up the macros incorrectly as it's only half-working.

switching from my game scene to my desktop scene works. it plays the 300ms fade transition & everything is fine.
however, when it's the other way around (desktop scene game scene), it doesn't switch. i know this because it doesn't play the 300ms fade transition, & it records my whole desktop audio rather than just game audio.

i've attached a screenshot of the setup.

thankyou :]
 

Attachments

  • macro.png
    macro.png
    99.3 KB · Views: 15

nojonsko

New Member
hi :)
i'm trying to set up adv-SS to automatically switch between games & my desktop. however, i think i may have set up the macros incorrectly as it's only half-working.
(tried editing original msg but there's a timelimit. anyway. i recorded a video of my OBS's behavior).
 

Warmuptill

Active Member
I am using two .mp4 video files. I had only 2 macros, the when I added a third to continue on, then the video output was quickly switching among the 3 videos.
I am having some success using the media Tab in the center of ASS, but when I try to use 2 individuals macros nothing happens. I tried going to OBS Version 3.1.0 but no luck. Is there earlier version of ASS I could try?
You can find all previous versions of the plugin here:

hi :)
i'm trying to set up adv-SS to automatically switch between games & my desktop. however, i think i may have set up the macros incorrectly as it's only half-working.

switching from my game scene to my desktop scene works. it plays the 300ms fade transition & everything is fine.
however, when it's the other way around (desktop scene game scene), it doesn't switch. i know this because it doesn't play the 300ms fade transition, & it records my whole desktop audio rather than just game audio.

i've attached a screenshot of the setup.

thankyou :]
I don't fully understand what you want the trigger for the scene switch to be.
If it is just "if game capture is capturing something switch to game scene and to desktop scene otherwise" you might want to try this macro instead:

1749292596596.png


You can import the example macro using this code:

Code:
AAAOVnic1VdtT+NGEP4r1n5qqwTF4aXANy6lPaTjjjbcqVWFrM16bK+y2bX2xRxC/PfO2I7jJFwgpVJbpAhnPPPMzLPz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Mzpaq7TPlYBeFvGybXfTMCu8xQA+KQEjEF7HC+vQOh2568BwsaMMhVE13QTwuvbdxMUWh59kU7OpILvWX3zbC/39OuimYl4+kZV0E3BT/oibUd+f4I9B/1epinoNwK3mAgZfeT1GfwzYNPmMvIWuKm3QEhkG3GdRpc6fRsg7Z+o2ZBR+2tif7y73tZj8cHh6CBmT38BLT7yaQ==
 

nojonsko

New Member
If it is just "if game capture is capturing something switch to game scene and to desktop scene otherwise" you might want to try this macro instead:

yes, this is almost correct, and thankyou! it's much better my setup. didn't realize you could add "else" actions.
only difference is that i added another condition so that it could only switch if both game capture is hooked & window is fullscreened, with an "and window" condition.

however, the issue still persists, and i think i know why.
since the desktop scene doesn't have a game capture source, it can't switch to the game scene.
the macro scans for any game capture hooks, but since there isn't a game capture source in the scene, there's nothing to detect. therefore the scene never switches.

i'm not sure how to do a workaround for this... any ideas?
maybe i could add a hidden game capture source in the desktop scene, but i don't like the performance impact it might bring.
 

Warmuptill

Active Member
however, the issue still persists, and i think i know why.
since the desktop scene doesn't have a game capture source, it can't switch to the game scene.
the macro scans for any game capture hooks, but since there isn't a game capture source in the scene, there's nothing to detect. therefore the scene never switches.

i'm not sure how to do a workaround for this... any ideas?
maybe i could add a hidden game capture source in the desktop scene, but i don't like the performance impact it might bring.
Yes, that might indeed be what is causing the issues you are facing.
To work around it you could open up a projector of the game capture source by right-clicking on the source and clicking "Open Source Projector"
This would ensure that the source is always "active".

I can't really comment with certainty on what the overhead would be.
But I assume it can't be that high when it is not actively capturing anything.
 

daisycody

New Member
BTW if I use the horizontal "Media" tab, (State Ended and Switch To) I can get it to work. When I try using Macros with same logic, it doesn't.
 
Moving some Macros from one set of scenes to another via import/export, and everytime I delete an imported macro OBS crashes. Dont know if u can recreate it, but its sure getting to me.
 

Warmuptill

Active Member
Moving some Macros from one set of scenes to another via import/export, and everytime I delete an imported macro OBS crashes. Dont know if u can recreate it, but its sure getting to me.
Thanks for reporting the bug!
I think that issue might already be fixed on the master branch.

A build can be found here:
You will have to be logged into GitHub to be able to download it at the bottom of the page.

Let me know if that resolved the problem! :)
I will release an update containing this fix (soon).
 

Warmuptill

Active Member
after installing this version, it let me delete 2 macros.... then obs crashed.
In that case, can you please share the crash log?
Does the crash still happen if you enable this option on the General tab?
1749591777672.png



Update:
I think I was able to identify a possible root cause for the crashes you observed.
A build with a fix will be available here in a few minutes:

I will try to release an update during the weekend.
Thanks for letting me know about the issue! :)
 
Last edited:

ignHree

New Member
Hello I'm having trouble setting up macro for switching Display sources.
I have a setup for Sunshine/Moonlight streaming where a virtual display is disconnected/connected from the PC upon ending/starting a session.

This results to display id changing everytime I disconnect/connect the virtual display for example:
  • \\\?\DISPLAY\#SMKD1CE\#1&15ecd195&1&UID261\#\{e6f07b5f\-ee97\-4a90\-b076\-33f57bf4eaa7\}
  • \\\?\DISPLAY\#SMKD1CE\#1&15ecd195&1&UID256\#\{e6f07b5f\-ee97\-4a90\-b076\-33f57bf4eaa7\}

UID seems to be the one that's changing but I dont know a way of getting this "new" information after a new display is connected. Its also random and not incrementing

Is there a way to loop through all of the "Display (List)" values and select whatever's the newest connected display?
 
Top