RobertWilliams
Member
Is there a way to get the index number of a sequence (current or next)? The plan is to store this value in a Variable to be used as a condition for other macros. TIA
The "Run Macro" button is intended to be used for testing.Hi everyone, for various reasons, I am running OBS 29.1.1 and running Advanced Studio Switcher 1.23.0. (OBS 30 is not an option for me right now.) I have included a log file. The issue I am having is I am trying to do an audio crossfade per this tutorial (https://www.youtube.com/watch?v=JNZNzdsmIN4). However, when I launch the macro, although it says it is running, I still get the hard audio cut off between scenes rather than the nice crossfade I am trying to get. I've also attached some screenshots as to how I configured the macros. What am I doing wrong?
View attachment 110370
View attachment 110371View attachment 110372
Thanks in advance!
And the logfile: https://obsproject.com/logs/TFQubp1Pt42YsA64
Unfortunately, there is not.Is there a way to get the index number of a sequence (current or next)? The plan is to store this value in a Variable to be used as a condition for other macros. TIA
View attachment 110380
Hi Warmuptill, thanks for getting back to me. When I generated the log it wasn’t running. However I had clicked ‘Start’ to ensure an active instance and didn’t run them. I can run it again and generate a log however.The "Run Macro" button is intended to be used for testing.
You don't need to press it to "activate" each macro.
You will however have to start the plugin on the "General" tab.
The log shows that the plugin is not active and I assume that is why the desired crossfade is not happening.
Unfortunately, there is not.
You could however add an "index" variable which you set to the desired value within the "Pre-Game - Start" and "Pre-Game End" macros.
The plugin still does not seem to be running.New Log File / Update: https://obsproject.com/logs/9BiJAOhuZ1M4MLV5
I have a bit of an update - I decided to back up, bite the bullet, and upgrade to the latest version. 30.1.1 of OBS, and 1.28.1 of AdvancedSS. Fortunately nothing weird happened and my setup works fine as it did before - a little faster, even. The bad news? I am having the SAME issue - I have attached a log file again. I did start the plugin in the General tab. Just to be safe I deleted my old macros just in case the migration caused an issue, with all new macros with the same event and...no dice. Ugly hard cut. I just don't get it, but here's the latest log file with everything running.
I would change the "On startup" setting to "Always start". That makes one less variable to consider. Did someone stop it before closing OBS? They weren't supposed to, but who knows?...Hi, here's the updated logfile with verbose logging enabled: https://obsproject.com/logs/4UJ3WpdgCVhgZ5hh.
I appear to have this set up to run on startup. Took screenshot:
View attachment 110393
Thanks for sharing the log and settings file!@Warmuptill - I realized I did not give you the exported settings file, sorry about that! I have attached it here. Thanks so much again for helping troubleshoot. :-) Also here is the log file so you don't have to go digging through again: https://obsproject.com/logs/JtCdjstdqpVxRHnu
...
19:21:35.998: [adv-ss] started
...
19:21:48.020: [adv-ss] running macro: MASTER-STANDBY
19:21:48.020: [adv-ss] running actions of MASTER-STANDBY
19:21:48.020: [adv-ss] performed action "AdvSceneSwitcher.action.audio.type.sourceVolume" for source "COUNTDOWN" with volume 1.000000 with fade 1 3.000000
...
Yes, that should be possible using a macro like this:I was wondering if anyone knew if I could use this plugin to fade out an audio input without changing scene?
I play music at times during my stream and there are times I need to stop the music so I can hear something in game etc. At the moment I just pause the audio in the application that's playing it, but that just hard stops the audio. I'd like to fade that audio out when I press a button (and pause it ideally) whilst staying on the same scene.
I can't figure out if this is possible.
Sounds great. Would be very much appreciated, thank you! Sending you a DM right now with my contact info. I just cracked open OBS again and I'm still having the same hard cut issue. I just generated another log file in the interim. The most important fade is having MASTER-STANDBY and CAM 1 (MAIN) WITH BORDER scenes fade when switched. BRB is also high on there. I also tried bringing "Check Conditions" down to 10 ms, and set it to 'Always Start', but it is quite stubbornly refusing to give me that nice audio fade. I also double checked to make sure I had the Fade toggle on for each source, with the specified time of fade in seconds, and I did, so. Log file: https://obsproject.com/logs/olqPPKy0U5ZHQjiLThanks for sharing the log and settings file!
The new log file shows that the plugin is running and the actions are being performed.
Code:... 19:21:35.998: [adv-ss] started ... 19:21:48.020: [adv-ss] running macro: MASTER-STANDBY 19:21:48.020: [adv-ss] running actions of MASTER-STANDBY 19:21:48.020: [adv-ss] performed action "AdvSceneSwitcher.action.audio.type.sourceVolume" for source "COUNTDOWN" with volume 1.000000 with fade 1 3.000000 ...
I also imported your settings file and was able to see the source volume fading as expected for the macros where this setting is enabled. (MASTER-STANDBY and CAM 1 (MAIN) WITH BORDER)
I am at a bit off a loss as to why this would not be working on your side.
Would you mind hoping in a discord / zoom / teams / whatever ... call where you can share your screen so I can have a look at the problem live?
If you are up for it, please contact me directly by sending me a DM here on the forum.
DM sent.Thanks for sharing the log and settings file!
The new log file shows that the plugin is running and the actions are being performed.
Code:... 19:21:35.998: [adv-ss] started ... 19:21:48.020: [adv-ss] running macro: MASTER-STANDBY 19:21:48.020: [adv-ss] running actions of MASTER-STANDBY 19:21:48.020: [adv-ss] performed action "AdvSceneSwitcher.action.audio.type.sourceVolume" for source "COUNTDOWN" with volume 1.000000 with fade 1 3.000000 ...
I also imported your settings file and was able to see the source volume fading as expected for the macros where this setting is enabled. (MASTER-STANDBY and CAM 1 (MAIN) WITH BORDER)
I am at a bit off a loss as to why this would not be working on your side.
Would you mind hoping in a discord / zoom / teams / whatever ... call where you can share your screen so I can have a look at the problem live?
If you are up for it, please contact me directly by sending me a DM here on the forum.
Variable action is providing this - you need to use `Set to macro property` with `File content`Hi @
Warmuptill,
I'm looking for a way for Advance Scene Switcher to read a local text file and insert the value into a variable. Does this exist? The File condition or action or variable condition/action is not providing this.
Thank you for any guidance.
Ye, this and any sort of log reading is currently impossible. There was this PR that never got finished: https://github.com/WarmUpTill/SceneSwitcher/pull/947 but it wasn't too efficient with big files, causing extreme lag. But it could be good enough for your use case if the file stays relatively small, so you could try merging that branch into latest master and building it yourself.I need help... My use case is that I want a certain event in a game I play to cause the replay buffer to reset (turn it off and then back on), every time this event happens.
I'm trying to use the "If File contains" condition to read a logfile of the game and reset the replay buffer every time it finds an specific sequence of text (that indicates that said event just happened). The problem is: once this text appears on the log once, it stays there, so the condition will return true forever.
What I need is for the condition to match ONLY if the text is present at the 50 lines of the logfile. So as new lines flood the log, the condition will start returning false again until the event happens again and is within the last 50 lines again making the condition return true again.
I tried using regex matching patterns but none of the ones I tried work. They either always match (because the string is there somewhere in the log file, usually what happens if I enable partial match) or do not match at all (if partial match is off, I suspect the regex doesn't support "non-capturing groups").