This OBS-Script can reset and overwrite values of a source.
But I can edit the values in the source setting and save them? Why Do I need a script for that?
Thats right, but sometimes there are cases, where you need to reset the values and then set your values
. Hence, OBS don't let you change default settings, you need to this on your own.
This can be (or at least it was for me) really cumbersome.
Thus I coded this script, which can do this for me.
The Video freezes after pressing the reset button help?
No worries, you just have to click on the resource and open it and save it. Unfortunately I don't know (yet) how to restart the source so that this will not happen.
- clone or download the repo or python file
- Go to Tools->Scripts
- load script into obs via file selector
- press the load script button
- Press
Print source settings
to see the source valuesNOTE: you need to open the script log to see the values
- write your JSON file which holds the value that needs to be updated / set using the printed values
- select file that contains the values that will be used for the update
NOTE: the values will be added to the source without checking if they are valid
- press
Reset source settings and update values
- additional: add a hotkey to the reset function
- reset the source
- update values, defined in json
- hotkey for reset function
within the script there can be flags set like that:
FLAG | VALUES | DEFAULT | DESCRIPTION |
---|---|---|---|
FILTERCLASS | obs.SOURCE_VIDEO,obs.SOURCE_AUDIO or see obs output flags | obs.SOURCE_VIDEO | Filters the source name list (drop down list) for only audio or audio etc. |
RESET | True,False | True | Determines if a reset should be done before updating the source settings |
FLAG | VALUES | DEFAULT | DESCRIPTION |
---|---|---|---|
DEBUG | True,False | False | Shows debug logs for debugging |
USE_OBS_LOGS | True,False | False | uses obs blog method for logging |
created by Blackeye / Blackstareye
Distributed under the MIT License. See LICENSE
for more information.
Thank you for this resources:
- Awesome Cheatsheet: https://github.com/upgradeQ/OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API/tree/master
- Getting Startet: https://obsproject.com/wiki/Getting-Started-With-OBS-Scripting
If you like my work and want to support me and my work, then this is the way:
Many Thanks ♥