Resource icon

Advanced Scene Switcher 1.26.2

Warmuptill

Active Member
Is there a way to write math, either in the 'set to fixed value' of a variable, or in the 'Set settings' text fields. I would love to calculate an aspect ratio by dividing one variable by another ${videoWidth} / ${videoHeight} .
There's no way to do that currently, is there?
Not at the moment - I will try to look into this tomorrow.
 

rusty1

Member
Not at the moment - I will try to look into this tomorrow.
This plugin is incredible. Over the past two years of using OBS, it's completely taken over my workflow. If you were to incorporate math into variables or text fields, I see that opening a new world of possibilities for dynamic design. Thank you for everything.
 
@Warmuptill Yeah, you're right. That's exactly how I trigger my BGM cart on my encoder from the "studio" machine, whichever it may be, for which I already got help. I can't believe I hadn't thought of it that way. (blush)

That said, though, I have learned some of the JSON messaging via the WebSocket API documentation and application within the plugin in your docs. Though doing so would be a more "orthodox" way of doing things. But if the event can be mucked around with using more "lazy" methods like I did before, that'd work fine. :3

Anyway, thanks for the insights.

--Katt. =^.^=
 

mg4k

New Member
A lot of serious programmers like to eliminate all warnings as well as errors. Warnings are there for a reason too, even though it technically works that way, so we either adjust the code to get rid of them, or temporarily turn specific ones off for a specific section of code where we know what we're doing and why. In your case, an easy way to get rid of the warning is to move the original direct action into the macro.

An advantage of doing it that way is that Adv. SS can appear to respond to the scene switch *before* it happens, because you've put the response actions first in the same macro.
Thank you, for explaining that. Right now, my use case scenario is that I have already set a hotkey to capture a short clip (using the source record plugin), which plays in a replay scene and I use Adv. SS to switch to that replay scene and then back to my game capture scene after a few seconds. (Hence the 2 same hotkeys.) Is there a way, I can do this is in the macro?
 

AaronD

Active Member
Thank you, for explaining that. Right now, my use case scenario is that I have already set a hotkey to capture a short clip (using the source record plugin), which plays in a replay scene and I use Adv. SS to switch to that replay scene and then back to my game capture scene after a few seconds. (Hence the 2 same hotkeys.) Is there a way, I can do this is in the macro?
I thought you were switching scenes with the hotkey, and using the same hotkey to trigger some other stuff in a macro. I don't know that you can trigger other plugins, though I think it'd be really handy to have "virtual hotkeys" that can be sent from here to any other plugin and don't conflict with anything else. (you can hit the same key on the keyboard, and it doesn't do anything)

In the absence of that, one idea might be to use OBS's native recording function, set to a static name and to overwrite the old file, and then the replay scene connects to that. Adv. SS has actions to start and stop that recording.
(I think the replay buffer works the same way, but it stays in RAM, never a file. Never actually used that one though, so I could be all wet.)
Either way, you'd be limited to recording the stream output, not an arbitrary source, but maybe that's okay?
 

AaronD

Active Member
Two minor issues:



1.
Collapsing / folding a group takes one too many with it:
Screenshot_20230311_083550.png

Screenshot_20230311_083611.png

As you can see, it has an easy workaround, but it would still be good to fix.



2.
Several times, the Macro -> Run Actions actions changed all of my Volume... macros to --select macro-- after a reboot, but the Gate... ones have always stayed correct. I had to put the Volume... ones back several times and it looks like they're finally staying, but it still makes me wonder how long they're going to last.

I was still grouping, ungrouping, and renaming during that time, so maybe that has something to do with it? But I think one of them was triggered only by having the group expanded or not.
 

Warmuptill

Active Member
Collapsing / folding a group takes one too many with it:
Thanks for pointing that out!
That is an issue that should already be fixed on the main branch, e.g. in this build:
The group size was not updated properly when removing macros that are currently part of a group.

I was still grouping, ungrouping, and renaming during that time, so maybe that has something to do with it? But I think one of them was triggered only by having the group expanded or not.
That was likely related to renaming / grouping, etc.
Handling references to other macros within macros still needs to be cleaned up.

This plugin is incredible. Over the past two years of using OBS, it's completely taken over my workflow. If you were to incorporate math into variables or text fields, I see that opening a new world of possibilities for dynamic design. Thank you for everything.
A build containing a first version of this functionality will be available here in a few minutes:
(Updated build link to fix a crash if the expression was empty)

Please note that this build might be unstable or have bugs as it contains a lot of variable related changes (not just for this particular functionality).
So before testing or using it make sure to back up your settings.

Math.PNG


Please do let me know if you encounter any issues!
 
Last edited:

rusty1

Member
Thanks for pointing that out!
That is an issue that should already be fixed on the main branch, e.g. in this build:
The group size was not updated properly when removing macros that are currently part of a group.


That was likely related to renaming / grouping, etc.
Handling references to other macros within macros still needs to be cleaned up.


A build containing a first version of this functionality will be available here in a few minutes:

Please note that this build might be unstable or have bugs as it contains a lot of variable related changes (not just for this particular functionality).
So before testing or using it make sure to back up your settings.

View attachment 92379

Please do let me know if you encounter any issues!
It's working perfectly for me!! ♥
 

khaver

Member
Something I've noticed when using the macro, Video "has changed" "For at least", even with a static webcam shot with no movement, the video noise of the webcam will trigger it. I have to create a clone of the source using another plugin, apply a color correction filter and adjust the gamma so the area that is being check is totally black, in order to keep any video noise from triggering the macro. I had problems when I checked the box "Use pattern matching". I would have to adjust the threshold down a bit, but then if any movement I was trying to trigger only slightly moved, the macro wouldn't be triggered.

Darkening a cloned source does work to mitigate the video noise problem, but it would be nice if there was some sort of adjustment in the macro itself to affect the image (darken, blur, contrast or ?) before sending it to the OpenCV functions.
 

jegadk

Member
Hi.

Having 2 macro's. Macro1 before gamestart and macro2 after game break.

When Macro1 is finished, i pause this macro and unpause Macro2.
Pause (Uncheck) Macro1 works, but it will not unpause Macro2 (Check Macro2)

Jesper
 

Attachments

  • Macro.png
    Macro.png
    10.9 KB · Views: 28

jegadk

Member
Hi.

Having 2 macro's. Macro1 before gamestart and macro2 after game break.

When Macro1 is finished, i pause this macro and unpause Macro2.
Pause (Uncheck) Macro1 works, but it will not unpause Macro2 (Check Macro2)

Jesper
Found the mistake.

When PAUSE a Macro, it does not run to end.

Solution: First do the unpause of Macro2 then Pause Macro1 as the last step

Jesper
 

MagnuzTG

New Member
Hi, I uppdated to 29.0.2 on OBS and is has destroyed the plugin. I have managed to fix most of but miss one thing. Every time I take a new replay it dosent change to the new one but keeps the previous one. Is there maybe a macro or something I dont know how to do or a setting?



OBS: 29.0.2
Advanced Scenbe Switcher: 1.20.5
 

Warmuptill

Active Member
Hi, I uppdated to 29.0.2 on OBS and is has destroyed the plugin.
First of all, I apologize for the issues you are encountering!

Just to clarify - did you upgrade from an OBS version <= 27 to 29 and lost all your settings (due to the Qt framework version change)?
Or are you referring to another issue with "destroy"?

Every time I take a new replay it dosent change to the new one but keeps the previous one. Is there maybe a macro or something I dont know how to do or a setting?
Sorry I don't fully understand what you are trying to do. :(
Can you elaborate a bit on what is not working as you would expect?
 

adrianabootie

New Member
Aargh. So I upgraded from OBS 28 to OBS 29 on a M1 MacBook running Ventura 3.2.1, and.... now Advanced Scene Switcher doesn't even show up in the Tools menu of OBS. I've tried re-downloading and re-installing to no avail.

The plug in which is called -- advanced-scene-switcher.plugin -- is installed here:
~user/Library/Application Support/obs-studio/plugins

Does this plugin need to be installed elsewhere? Is there a way to automatically install it correctly? Am I downloading the wrong plugin for an M1 Mac running OBS 29?

HELP!

Everything was working fine on the same machine running OBS 28. Now Advanced Scene Switcher won't even show up as an option under the Tools menu.
 

Warmuptill

Active Member
Aargh. So I upgraded from OBS 28 to OBS 29 on a M1 MacBook running Ventura 3.2.1, and.... now Advanced Scene Switcher doesn't even show up in the Tools menu of OBS. I've tried re-downloading and re-installing to no avail.

The plug in which is called -- advanced-scene-switcher.plugin -- is installed here:
~user/Library/Application Support/obs-studio/plugins

Does this plugin need to be installed elsewhere? Is there a way to automatically install it correctly? Am I downloading the wrong plugin for an M1 Mac running OBS 29?

HELP!

Everything was working fine on the same machine running OBS 28. Now Advanced Scene Switcher won't even show up as an option under the Tools menu.
Can you share an OBS log?

I think the most likely situation is that you accidentally installed the x86 version of the plugin while OBS is arm based or vice versa.
That should be visible in the log.
 

LexXxusTV

New Member
I was wondering kinda off topic, but not.
Is there any way to have OBS listen when you get killed in PUBG to auto change your scene?
Kinda the way Geforce Experience records highlights and end game deaths?

If you don't think it's possible, who would be best to send this request to, PUBG and ask them to make the plugin also?
I think this option for streamers could be possible if we had access to the codes PUBG is sending out to trigger that.

Thanks for all your help and advice Warmuptill
 

Warmuptill

Active Member
I was wondering kinda off topic, but not.
Is there any way to have OBS listen when you get killed in PUBG to auto change your scene?
Kinda the way Geforce Experience records highlights and end game deaths?

If you don't think it's possible, who would be best to send this request to, PUBG and ask them to make the plugin also?
I think this option for streamers could be possible if we had access to the codes PUBG is sending out to trigger that.

Thanks for all your help and advice Warmuptill
You might be able to achieve this using the "Video" condition, assuming there some sort information available visually that this event has occurred.
For an example how on how to use the video condition you can check out this guide:

For more general information about the video condition have a look at this wiki page:

Hope that helps!
Let me know if you have any questions!
 

carlo_gra

New Member
Hi,

I'm having issues in installing the plugin on Ubuntu 20.04 with XFCE. I tried with the binary but it's not showed in the Tools menu...
I tried to install it manually but with any difference from the previous attempt.
I also tried with flatpak but in this case I lose VLC as a source.

Any Idea on how to have it working?
 
Top