If I ever write any script for OBS, it'll be here.
Find a file
2024-07-10 12:02:44 +03:00
deps Added more settings to frame_updater and made it react to 16:9 ratio with showing/hiding frame source. Added JSON parser and an example on how to use it. 2023-12-21 19:52:46 +03:00
death_counter.lua Create death_counter.lua 2023-12-21 12:45:11 +03:00
frame_updater.lua Added more settings to frame_updater and made it react to 16:9 ratio with showing/hiding frame source. Added JSON parser and an example on how to use it. 2023-12-21 19:52:46 +03:00
frame_updater_custom.lua added a custom frame updater script with additional features (see [README.md](README.md)) 2024-07-10 11:57:51 +03:00
obs_source_set_settings_fix.lua Added more settings to frame_updater and made it react to 16:9 ratio with showing/hiding frame source. Added JSON parser and an example on how to use it. 2023-12-21 19:52:46 +03:00
README.md Fixed custom frame synchronizer link in the readme 2024-07-10 12:02:44 +03:00
source_synchronizer.lua Fix ShaderGlass issue in source_synchronizer.lua 2024-06-22 23:14:32 +03:00

A collection (?) of OBS scripts...

...designed to make my life easier (and maybe yours?), no thanks to the OBS devs

source_synchronizer.lua

Syncs your game audio capture source with your game window capture source.

If you want a finer degree of control what's getting in your VOD stream 2 - this is the script for you.
You know how you can stop capturing the entire desktop monitor and grab only what you need?
Well, except now you have to remember to update two sources instead of one every time you change a game/app you'd like to capture... This script brings it down to one again by synchronizing target window of an audio capture source with the target window of an image grabbing source.
Enjoy!

frame_updater.lua

Checks the size of a game capture source and updates filepath of an image source to match that.
Right now only 2 resolutions are supported ad nothing is in the GUI apart from upadte interval and 2 sources: the game capture one and the frame/overlay one.
Be sure to select the folder with your frames.
If you want to change your crop filter name, then load the script and refresh it. That's the only way to update the list in OBS properties after it's been created, since one can't update a list on properties update. (In reality refreshing recreates the properties object)
Tinker with it to suit your needs.

frame_updater_custom.lua

A more elaborate version of the previous script.
It adds stream number tracking via a text source and a browser source.
You probably don't need it "as is", but there are things to learn inside:

  • fixing hotkeys firing twice and/or not firing when clicking buttons in the UI
  • settings custom css to a browser source (sadly requeires source refresh)
  • setting up hotkeys and buttons callbacks
  • reading and writing text source text

death_counter.lua

Uses one of the text sources as a death counter.
Set up a hotkey and press it for the counter to go up.
Reset the counter in the script setting window.

obs_source_set_settings_fix.lua

A helper file that can help one iterate OBS source's properties (also works for filters, as those are treated as sources internally).
Find details inside the file.

DEPS

This folder contains all the Lua scripts that will help circumvent crappy desing of Lua bindings in OBS.