Hi, I'm currently using Advanced Scene Switcher to auto start recording gameplay, as well as pausing/unpausing when the game is in focus.
Right now I have my macros set up like so:
for each game.exe, with (Perform actions only on condition change ticked)
Macro 1: if process is running and focused, start recording
Macro 2: if process is not running, stop recording
Macro 3: If process is running, AND NOT process is running but not focused, pause recording
Macro 4: If process is running and is focused, unpause recording
This works well, but it's 4 separate macros, and I have to manually set them up for every single game I play, which means I have to create dozens of macros in total. It's becoming unmanageable. Is there a better way to do this?
You can
enable regular expressions to match multiple processes at once.
For example,
Agent.exe|Notepad.exe would translate to "
Agent.exe or
Notepad.exe".
If you frequently change the list of processes to check for and don't want to repeat the regular expression in each "Procses" condition you can use a
variable instead.
For example, here I am referencing the variable with the name
Process.
From what you have described I assume this is likely not relevant, but just to mention it briefly:
It is also possible to define variables "inputs" for macros, which you can set when executing a macro via the "Macro" action.
New to this plugin and using it to detect significant visual changes in a video stream and then take a screenshot. Its working but I can't figure out how to make each screenshot get a different filename. I guess I need to use a variable that comprises of date time but can't find anything in the wiki that describes this. Can anyone give pointers?
If you use the default OBS recording output format the filename of the screenshot should already include the date.
The exact format can be configured in the OBS settings:
If you explicitly want to set up a custom path you can set up a helper macro to populate variables with the current date.
You can find an example of such a macro here:
An automation tool for OBS Studio. Contribute to WarmUpTill/SceneSwitcher development by creating an account on GitHub.
github.com
You can then reference those variables in the screenshot action in the format of your liking:
Also, while I am here. My next project after I get this screen capture working, will be rather more ambitious. I plan to somehow turn timestamps for start and end of a quote in a live youtube feed into a saved video clip but getting OBS to wind back the youtube feed to the specified start time, record output, and stop recording at the stop time. That all sounds fairly easy but the timestamps will not be frame specific and so It will need some tolerance, starting a little early and looking for a pause in audio to avoid truncating spoken words. I vaguely imagine advanced scene switcher could achieve this. If anyone has done anything remotely similar, please let me know.
That does indeed sound very complex.
Unfortunately, I don't have have anything similar yet.
For the detection of "pause in audio" you could use the "Audio" condition type: