scripting

  1. M

    How to trigger a python script on OBS Studio when a Alert box changes?

    Hello everyone, I would like to know how to trigger a python script (ran at localhost) on OBS Studio when a Alert box changes? Thanks in advance!
  2. H

    Best Of 3 Tally Mark Counter Using 3 Hyphens

    Need help making an obs script that has me and a friend stumped, I'm not a coder so keep that in mind if I make no sense. The idea behind it is that there are 3 text sources, one will be red team and one will be blue team. The last text will be the blank white to show no points were scored on...
  3. 412comms

    Populate text overlay elements from Excel file?

    Dear OBS developers, Sports stream producer here (hockey and horse racing, chiefly) with a bit of a dilemma, an idea of how I want to approach it, but absolutely no programming knowhow to make it work. Throughout a single horse racing meeting, over a hundred horses compete — not to mention...
  4. U

    OBS Lua obs-libre-macros

    upgradeQ submitted a new resource: obs-libre-macros - Scripting and macros hotkeys in OBS Studio for Humans Read more about this resource...
  5. U

    OBS Lua obs-libre-macros 2.1.0

    Description obs-libre-macros is an Extension for OBS Studio built on top of its scripting facilities, utilising built-in embedded LuaJIT interpreter, filter UI and function environment from Lua 5.2 Screenshot Features Attach Console to any source in real-time. Auto run code when OBS starts...
  6. F

    How to install obspython module?

    Hello everyone, I apologize in advance if this question seems redundant or stupid. I've been struggling to find a proper way to install obspython, if that's even the name of the OBS Python API. I've downloaded python 3.6.x (x86-64), and am using obs 64 bit. I've attempted using the pip...
  7. ActiveCreek

    API for starting Virtual Camera

    I'm looking through the documentation for APIs to start the Virtual Camera output from a plugin (or script). I've found the obs_output_start method, but the documentation implies that an output is either a stream or a recording. Is there a method for starting the built-in virtual camera? Or, is...
  8. bfxdev

    Tips and tricks for Lua scripts

    I start this thread to share my main advancements with Lua scripting. As of today (OBS v26.0.2 released October 6th 2020), the online documentation describes the OBS API in its original C form, and it is left as an exercise for the scripting enthusiast to figure out how data types are converted...
  9. dkunin9

    Any way to change cooldown for timer in Python?

    Hi, I am new here and already have some stuff to solve: For example I have a command !command It is written in chat every second (i set it in timer) I have a condition when it is needed to change it's cooldown from 1 second to i.e. 2 or 3 or 5 How to handle this? Any ideas? Thank you, OBS...
  10. E

    Multi User Support Scripting

    Hello, I have a Windows PC with OBS Studio installed. This PC will be used by multiple users. I would like to be able to create a Python script that will allow the user to press a single button and load in a set of default settings. This would be used when the user a) first sets up to use OBS...
  11. Alexik

    Scripts Remote Control

    I need to connect my scripts with remote controller. I see an web interface or desktop applications which contains some buttons which i can click to send signals to my obs scripts. And on reactions on that this scripts will call some functions declared on this signals. What are there known...
  12. Alexik

    OBS Lua - Scene Item to Source

    I need to get a list of sources of needed scene, but i only found the way to get a list of obs_scene_item objects. How to take the obs_source objects from them?
  13. U

    OBS Python Tally counter 1.0.0

    Count up,count down and reset to zero Setup and download
  14. U

    OBS Python Scripted text 1.0.0

    Scripted text Create one hotkey with scripted text + sound For windows install [python3.6] 64 or 32 bit depending on your OBS Usage Create text source. - Optionally create media source - Optionally create layer source - Open Tools>Scripts - select this script - set settings for it, change...
  15. B

    Question / Help Is there a way to detect if a stream is live programmatically?

    Im looking into automating OBS and implement some sort of health checks. Im not streaming to Twitch or Youtube but outputting the stream to an NGINX sever to create an output RTMP link for someone to ingest. I already have a script that automatically opens OBS and start stream via a batch file...
  16. wackazong

    Trigger hotkey events from python

    I compiled the motion-effect plugin on Mac and now I want to start the effect from a python script. The filter that I use exposes a hotkey that can be called to start the filter's effect. How can I start the effect from python? Can I trigger hotkey events from python? Or can I register a method...
  17. A

    Question / Help Create callback in python script to use in "obs_source_enum_filters"

    Hi I'm trying to list filters on a source in a python script I'm working on, but i can't figure out how to get the callback working in: obs_source_enum_filters(obs_source_t *source, obs_source_enum_proc_t callback, void *param) I get this error: TypeError: in method 'obs_source_enum_filters'...
  18. Korwin

    Python script and vec2 struct

    Hello, I'm tring to write python script that would move one of the sources somehow. For this I'm tring to utilize obs.obs_sceneitem_set_pos The problem is that it require "const struct vec2 *pos " as a second parameter. I tried to pass tuples, arrays, classes and always get: --------------...
  19. A

    Bug Report Python scripting don't work on OBS 22.0.3

    Is python scripts currently supported in the latest version of OBS (22.0.3) on macOS? I'm trying to load a script, but unable to get any output in console. I've tried setting python path to /usr/local/Cellar/python/3.6.5 but nothing have changed, still no output.
Top