Advanced Scene Switcher

Advanced Scene Switcher 1.28.1

nublet

New Member
Hey there, I'm trying to make it so audio plays as a text file which contains captions is edited.
My issues after various attempts are that, depending on how short or long the file is, the sound effect is too short or long.
If I say "Hello", it could play a whole 5 seconds of dialogue effects.
When I try shorter sounds, it ends up too short for longer sentences.

Here is a video to see what I've been attempting
https://drive.google.com/file/d/1lHvwQaX8FXo_fCmRqbSLzMvuSZ_MLwRf/view

Currently, I have it set up as

[If] [File]
Content of [local file] [captions.txt] [modification date changed]

[And not] [File]

Content of [local file] [captions.txt] [matches]
^%

[Media]
[Play] [Sound Effect]


Is it possible to have the sound play based on the length of words as they are added to the file?
 

Warmuptill

Active Member
Hey there, I'm trying to make it so audio plays as a text file which contains captions is edited.
My issues after various attempts are that, depending on how short or long the file is, the sound effect is too short or long.
If I say "Hello", it could play a whole 5 seconds of dialogue effects.
When I try shorter sounds, it ends up too short for longer sentences.

Here is a video to see what I've been attempting
https://drive.google.com/file/d/1lHvwQaX8FXo_fCmRqbSLzMvuSZ_MLwRf/view

Currently, I have it set up as

[If] [File]
Content of [local file] [captions.txt] [modification date changed]

[And not] [File]

Content of [local file] [captions.txt] [matches]
^%

[Media]
[Play] [Sound Effect]


Is it possible to have the sound play based on the length of words as they are added to the file?
You could try to check for the length of the file contents using regular expressions and thus choose to play longer or shorter sound effects.
For example the following expression will match if the file content is between 5 and 10 characters.

5to10.PNG


This one will match if the file contains 11 or more characters.

11orMore.PNG


Hope that helps!
 

pocketbroto

New Member
I'm having trouble with the plugin.
This is what it looks like when i open it through obs. I also was trying to reinstall it so i can see if it will solve but i can't find it on my computer to remove.
image_2022-10-29_113555210.png
 

serenmew

New Member
When adding a macro to adjust transformation of a scene item, if there are two of the same object (references) I can select single instances of them with the drop down (all, .1, .2 etc). However when you have anything but 1 selected, upon restarting obs it seems to default to 1.
 

Shaggedy

New Member
Hi, having a problem with the plugin crashing OBS when I try to actually click on any of my macros in the macro menu. OBS is fully up to date, latest version of the plugin. It works fine, the macros trigger according to their conditions while OBS is running. I can even open the macro menu to the default page. But when I click any of the macros in the list the entirety of OBS hangs. Not sure what I've done to create this behaviour and any help would be really appreciated.
 

Warmuptill

Active Member
Hi, having a problem with the plugin crashing OBS when I try to actually click on any of my macros in the macro menu. OBS is fully up to date, latest version of the plugin. It works fine, the macros trigger according to their conditions while OBS is running. I can even open the macro menu to the default page. But when I click any of the macros in the list the entirety of OBS hangs. Not sure what I've done to create this behaviour and any help would be really appreciated.
Can you please export the settings you are currently using to a file on the General tab and share it with me?
 

Warmuptill

Active Member
When adding a macro to adjust transformation of a scene item, if there are two of the same object (references) I can select single instances of them with the drop down (all, .1, .2 etc). However when you have anything but 1 selected, upon restarting obs it seems to default to 1.
Thank you very much for pointing that out.
A build with a fix will be available here in a few minutes:
You will have to be logged into GitHub to be able to download it.
If that is an issue for you let me know and I will share it somewhere else.
 

Warmuptill

Active Member
Here you go.
Thank you!
I cannot see any obvious issues in the settings themselves and cannot see the problem when importing the settings.
So maybe the problem in the scene switcher is somehow triggered to one of the sources the plugin is interacting with.

Does the freeze also happen if you stop the plugin first before interacting the the macros?
 

Shaggedy

New Member
Thank you!
I cannot see any obvious issues in the settings themselves and cannot see the problem when importing the settings.
So maybe the problem in the scene switcher is somehow triggered to one of the sources the plugin is interacting with.

Does the freeze also happen if you stop the plugin first before interacting the the macros?
Yep. Stopped the plugin and restarted OBS to make sure the change took effect. Still freezes.

Actually experimenting with it a bit more, I can click on any of the "empty" macros I have added to use as separators, as well as the final real macro in the list and not freeze the program, but anything else causes the freeze. I can only assume it has something to do with the way I've constructed the macros to monitor certain sources or interact with each other.
 

CodeYan

Member
I experience this freezing with macros that have many macro conditions and actions. Won't really crash obs, but will take a good few seconds till it finishes loading the macro widgets. I have one macro with 24 date conditions and it does take a while to load.
 

attaboyBrad

Member
For the life of me, I can't get a window or process to trigger if 'Focused' is checked. They trigger fine on 'exists' or 'is running', respectively. I'm running OBS 28.1 on a Mac Studio running Ventura.

Seems like I must be missing something right in front of me...

I've attached an export of my settings in case that helps somebody point me in the right direction.
 

Attachments

  • adv-ss-Attaboy OBS Scenes-2022.11.01.19.38.33.txt
    5.7 KB · Views: 11

Warmuptill

Active Member
For the life of me, I can't get a window or process to trigger if 'Focused' is checked. They trigger fine on 'exists' or 'is running', respectively. I'm running OBS 28.1 on a Mac Studio running Ventura.

Seems like I must be missing something right in front of me...

I've attached an export of my settings in case that helps somebody point me in the right direction.
On MacOS the "focus" check is relying on the window title to match the provided pattern.
So to match the OBS window you could use the following options:

Focus.PNG


If that is too limiting, as the window title might change when switching profiles, you can use a regular expression similar to this one:

Focus2.PNG


For the Zoom example I think you can just leave it as is, as the process name and window name seem to be the same (at least in my limited testing):

Focus3.PNG


Unfortunately I am not familiar with the other applications mentioned in your settings, so I cannot give examples for those.
Hope that helps!
 

attaboyBrad

Member
On MacOS the "focus" check is relying on the window title to match the provided pattern.
So to match the OBS window you could use the following options:

View attachment 88269

If that is too limiting, as the window title might change when switching profiles, you can use a regular expression similar to this one:

View attachment 88270

For the Zoom example I think you can just leave it as is, as the process name and window name seem to be the same (at least in my limited testing):

View attachment 88271

Unfortunately I am not familiar with the other applications mentioned in your settings, so I cannot give examples for those.
Hope that helps!
I appreciate the suggestions! I tried them all, but unfortunately they didn't solve the issue as the window/process titles are already exact (tried both typing in manually and selecting from dropdown list). I had a mix of windows and processes in my settings because I was A/B testing trying to figure out why nothing worked once I checked "focused" (or any of the other window options like fullscreen, etc).

It sounds like I'm correct in assuming that "focused" means "the foreground window that's currently being interacted with". Is there perhaps some permissions issue where Advanced Scene Switcher cannot access the Window titles? Is there a way I can see what the program thinks is currently in focus?

It's strange that the app seems to detect that all of the windows/processes I've tried exist, but can't trigger with any of the options selected. I wonder if it has anything to do with how the "Color Picker" in OBS filters can't access anything outside its own window... Then again, foreground app based triggers seem to work fine with 'Automatic Scene Switcher' so the issue seems limited to 'Advanced Scene Switcher'.

All other triggers seem to work fine: cursor, idle, plugin state, virtual camera, scene item visibility, file, etc.
 
Last edited:

Warmuptill

Active Member
I appreciate the suggestions! I tried them all, but unfortunately they didn't solve the issue as the window/process titles are already exact (tried both typing in manually and selecting from dropdown list). I had a mix of windows and processes in my settings because I was A/B testing trying to figure out why nothing worked once I checked "focused" (or any of the other window options like fullscreen, etc).

It sounds like I'm correct in assuming that "focused" means "the foreground window that's currently being interacted with". Is there perhaps some permissions issue where Advanced Scene Switcher cannot access the Window titles? Is there a way I can see what the program thinks is currently in focus?

It's strange that the app seems to detect that all of the windows/processes I've tried exist, but can't trigger with any of the options selected. I wonder if it has anything to do with how the "Color Picker" in OBS filters can't access anything outside its own window... Then again, foreground app based triggers seem to work fine with 'Automatic Scene Switcher' so the issue seems limited to 'Advanced Scene Switcher'.

All other triggers seem to work fine: cursor, idle, plugin state, virtual camera, scene item visibility, file, etc.
I will add the option to display the current foreground window or process name when the focus option is enabled.
Unfortunately I won't be able to finish this today.
I will send you the the link to the build tomorrow.
 
Top