Advanced Scene Switcher

Advanced Scene Switcher 1.28.1

FroztySeven

New Member
Is there maybe a firewall blocking the plugin from using the port?
I will try to add additional logging to confirm that this is really the issue.
I've checked all of my Windows Firewall settings, tried different browsers and even different computers.
Whatever i do i can reach the login page of Twitch and then it just fails to load again after that, so yeah i'm really not sure why it's happening.
Maybe allowing a different port for the plugin could also help with this?
 

Warmuptill

Active Member
I've checked all of my Windows Firewall settings, tried different browsers and even different computers.
Whatever i do i can reach the login page of Twitch and then it just fails to load again after that, so yeah i'm really not sure why it's happening.
Maybe allowing a different port for the plugin could also help with this?
A build with the port set to 42171 will be available here in a few minutes:
You will have to be logged into GitHub to be able to download it.

As mentioned before have a look out for the mentioned log messages in this this build in case it does not work still.
They would indicate that something is actively preventing the receiving of the token string from Twitch.
 
Hi just wanted to follow up on my timing issue from earlier. I think it was due to the default settings being changed. And every script was waiting for 5 seconds before executing. "After performing actions, skip performing actions"... was set to 5 seconds. I have no idea why.

I would like to make small request, can someone please post a screengrab of the default settings for the General Page, (just for ref).

Thank you.
 
Separate post due to Question or feature Request:

Is there a way to add variable values to the "System tray notification" Item?

For example ("zoomvar" is set to 1 in this case):

MESSAGE: Zoom is set to %zoomvar%

Would show:

Zoom is set to 1

I have searched on this and can find no answer so making this request.

Thanks again for the most essential plugin
 

Warmuptill

Active Member
I would like to make small request, can someone please post a screengrab of the default settings for the General Page, (just for ref).
I have created the following wiki page including screenshots of the default settings:
Let me know if you spot any issues / feel free to correct them! :)

Separate post due to Question or feature Request:

Is there a way to add variable values to the "System tray notification" Item?

For example ("zoomvar" is set to 1 in this case):

MESSAGE: Zoom is set to %zoomvar%

Would show:



I have searched on this and can find no answer so making this request.

Thanks again for the most essential plugin
This is already possible using the ${variable name here} syntax.
So for example:
1701559931243.png
 
I have created the following wiki page including screenshots of the default settings:
Let me know if you spot any issues / feel free to correct them! :)


This is already possible using the ${variable name here} syntax.
So for example:
View attachment 99785
Awesome on both, thank you. I was close with the %variable% but no cigar :-)
 

FroztySeven

New Member
A build with the port set to 42171 will be available here in a few minutes:
You will have to be logged into GitHub to be able to download it.

As mentioned before have a look out for the mentioned log messages in this this build in case it does not work still.
They would indicate that something is actively preventing the receiving of the token string from Twitch.
Alright cool, i just tried this build but unfortunately it gave me identical results
I tried both in Firefox and Chrome again this time:
I also tried re-authorizing access which does which does open this page just fine:
firefox_2023-12-03_13-47-22.png


Once again with the new port. I am still getting the same error after Authorizing
firefox_2023-12-03_13-42-36.png

chrome_2023-12-03_13-42-56.png
 

ronack

New Member
While you can quite easily modify the setting using an action setup similar to this ...
View attachment 99649
... it seems like not only the window title is needed, but also the process name as well as the window class name.
So for example:
Advanced Scene Switcher | Page 159 | OBS Forums — Mozilla Firefox:MozillaWindowClass:firefox.exe

Unfortunately, at the moment the plugin does not expose the window class name.
So at the moment you only have to option to setup a number of macros which each map a window title to one of those strings.


Is there maybe a firewall blocking the plugin from using the port?
I will try to add additional logging to confirm that this is really the issue.


The ability to detect faces is already implemented in the "Video" condition type's option to check if a given video input contains an object:
The plugin ships with a few example object detection models from OpenCV which also includes face detection.


Yes, that might be possible.
I can't give an ETA when I will get around to it though.

While you can quite easily modify the setting using an action setup similar to this ...
View attachment 99649
... it seems like not only the window title is needed, but also the process name as well as the window class name.
So for example:
Advanced Scene Switcher | Page 159 | OBS Forums — Mozilla Firefox:MozillaWindowClass:firefox.exe

Unfortunately, at the moment the plugin does not expose the window class name.
So at the moment you only have to option to setup a number of macros which each map a window title to one of those strings.


Is there maybe a firewall blocking the plugin from using the port?
I will try to add additional logging to confirm that this is really the issue.


The ability to detect faces is already implemented in the "Video" condition type's option to check if a given video input contains an object:
The plugin ships with a few example object detection models from OpenCV which also includes face detection.


Yes, that might be possible.
I can't give an ETA when I will get around to it though.
Thank you for the Face Track information. I'll take a look at Video Condition, it may be what I am looking for.
 

ImBlue

New Member
I'm probably missing something simple but I am not used to macOS. I have installed Advanced Scene Switcher, found the installer in downloads and followed it through, but when I go to the tools tab, it is not there, only the auto scene switcher and that stuff. I know nothing about Mac so if there's a guide or something to eli5 that'd be helpful.

Thanks!
 

Warmuptill

Active Member
Alright cool, i just tried this build but unfortunately it gave me identical results
I tried both in Firefox and Chrome again this time:
I also tried re-authorizing access which does which does open this page just fine:
View attachment 99805

Once again with the new port. I am still getting the same error after Authorizing
View attachment 99802
View attachment 99803
'Connection refused' might indicate that some sort of firewall might be blocking the connection.
I can't really say much more than that unfortunately. :(

I'm probably missing something simple but I am not used to macOS. I have installed Advanced Scene Switcher, found the installer in downloads and followed it through, but when I go to the tools tab, it is not there, only the auto scene switcher and that stuff. I know nothing about Mac so if there's a guide or something to eli5 that'd be helpful.

Thanks!
The most common issue for mac users is that they installed the plugin for the wrong architecture.
(Arm build on a X86 based OBS install or vice versa)

If that is indeed the issue this should be visible in the OSB log.
If you want to be on the save side please try to use the "universal" variant of the installer for MacOS in the plugin's downloads.
 
Why will it not download to my PC when I hit download it take me to github

If you are clicking the button at the top of the page, it will say one of two things: "Download" or "Go to download".

"Download" will give you download option links, but very few plugins are hosted here on the site. The ones that are hosted here are mainly those by OBS Studio developer Exeldro.

"Go to download" will, ninety-nine times out of a hundred, take you to somewhere like GitHub.

Once you are on GitHub, you will need to look down a bit for the various packages for the various platforms, like Linux, macOS, and Windows, as well as any subplatforms, e.g. Linux x64 or ARM; Windows x64; Mac x64, Apple Silicon, or Universal. Select the proper download(s) for your application, then follow the instructions.

--Katt. =^.^=
 

stickybeats

New Member
I have an install and operation question. I'm on an Intel Mac running Monterey OS 12.6.8. I haven't used OBS in about two years and I updated it to 30.0.0 tonight. I'd kept it up to date when I was using it more frequently. I had to reinstall the Advanced Scene Switcher so I downloaded v1.24.0 and installed it.

There are no longer any options tabs at the top of the scene switcher window other than General and Macro. I figured OK I'll try to setup a basic sequence anyway. It's been a while since I've used it so I looked at the wiki under "Automatically cycle through a list of scenes". I'm unable to follow the first condition because when I choose "Plugin state" from the dropdown I don't have the "Advanced scene switcher is running" option. Mine only has a generic "Plugin is running". Please see attached screenshot for reference.

Something isn't right. Did my install not work correctly, or how can I fix this?

Thank you for any insight!
 

Attachments

  • Screen Shot 2023-12-04 at 11.17.22 PM.png
    Screen Shot 2023-12-04 at 11.17.22 PM.png
    274.4 KB · Views: 17

AaronD

Active Member
I'm unable to follow the first condition because when I choose "Plugin state" from the dropdown I don't have the "Advanced scene switcher is running" option. Mine only has a generic "Plugin is running". Please see attached screenshot for reference.

Something isn't right. Did my install not work correctly, or how can I fix this?
It's right. The Wiki is horribly out of date.

This is a programming language. Lots of different ways to do the same thing. Know how each part works, and be creative in putting them together.

For example, the wiki says to do it all in one macro, with Waits in between, but I prefer a different way. Have a separate macro for each step, that looks for its previous step being active, plus a condition timer instead of the preceding Wait. One condition with a time, and one action, for each of many macros. The two advantages to that are:
  • You can start the sequence at any point, just by making that step active. Switch to that scene, for the most common example. This itself could be manual or automatic somehow.
  • You can stop/escape the sequence at any point, just by making the present step no longer active. Switch to a scene that is not in the sequence, to stay with the most common example. Then the condition timer doesn't finish, and the corresponding action doesn't run.
If you do it all in one macro with Waits, then you're stuck. Technically, it works, exactly as advertised, but you have to start where the macro starts, and your attempts to escape are overridden when the Wait runs out and it runs the next step regardless. Maybe that can be a security thing - auto-correction for someone getting in there and messing with it - but beyond that, it's annoying at minimum, and could easily be a show-killer.
 

Mark Weiss

Member
Here's a tricky one.. using Advance Scene Switcher to drop in logos and bumper videos both in between VLC media programs and also at 15 minute intervals for long form programs. Here's the challenge: For long form programs, I have a 15 minute interval bumper, but I don't want it to play if the programming just switched and in the transition, played a bumper already. So the question is, how can I make the every 15 minute bumper trigger itself off the last bumper that occurred between program transitions so as to prevent bumpers from playing right after one has played automatically between programs?


1701798146631.png
 

AaronD

Active Member
Here's a tricky one.. using Advance Scene Switcher to drop in logos and bumper videos both in between VLC media programs and also at 15 minute intervals for long form programs. Here's the challenge: For long form programs, I have a 15 minute interval bumper, but I don't want it to play if the programming just switched and in the transition, played a bumper already. So the question is, how can I make the every 15 minute bumper trigger itself off the last bumper that occurred between program transitions so as to prevent bumpers from playing right after one has played automatically between programs?


View attachment 99856
Three macros and one variable for the main logic, plus a couple of "helper macros":
  • Program Transition:
    • Set the variable to 2
    • Play the bumper
  • Every 15-minutes regardless, AND variable not 0:
    • Decrement the variable (must decrement here, don't set it to a constant)
  • Variable is 0:
    • Set the variable to 1
    • Play the bumper
Think that through, maybe with some scratch paper, and see if it works for you.

The hotkey is just a placeholder. Use whatever condition you want to change programs.
1701831637284.png

1701831652044.png

1701831674172.png

The condition to Play the Bumper is intentionally blank, so it only runs when another macro calls it.
The action here is also a placeholder. Replace it with whatever you actually do to play the bumper.
1701831688876.png

The Return from Bumper macro is entirely a placeholder. You can do what you like with it too. I use this structure a lot because I normally have live cameras, and I want to return automatically to the same camera after a video.
1701831706901.png
 

Warmuptill

Active Member
Please note that a crash has been reported when opening a macro containing a "Source" action or condition, which has a Window Capture or Game Capture source selected.

A build with a fix is available here:
You will have to be logged into GitHub to be able to download it.

I will release an update containing this fix and a few other fixes / changes on the weekend.
Sorry about this!
 

Laczkó

New Member
I use Advanced Scene Switcher not only for automation but also to set up a lot of warnings for almost any malfunction (usually malfunction=I set up something incorrectly) in my system, but I didn't find any way to extract the information about the name of the file in a source for a script and that is exactly what I need for now.

I'm using txt files to show informations of the upcoming programs on the stream. My system is built in a way if a source in a scene is xyz.mpg, then an other source in an other scene should be xyz.txt to work properly. I want to avoid human errors, like set the video source, but forget the text or vica versa. Logically I can think of two solutions: the text source is automatically set by some script to the txt file with the same name as the video source has, so I don't need to manually setup both, or run a check by some script if the two source conatain files with the same name (except for extensions) and if not, it shows some warning. (The xyz.mpg and the xyz.txt are in the same folder, next to each other.)
 
Top