1. D

    Field value from dock module

    I'm trying to print out a field value from a dock module. The Twitch Stream Information dock has a title field, which sets the stream title on twitch. I want to use that field value to create a twitter post. The only thing I'm missing is, how do I extract that value. My code is written in python.
  2. C

    Customize Python Path on Linux

    On Windows there is a "Python Settings" tab that allows me to set my Python path to a virtual environment for OBS. This allows me to manage dependencies easily. However, on Ubuntu, it seems that OBS uses the system python without giving the user to switch to an alternate Python environment. Is...
  3. I

    How to add Media Source Local File with PYTHON

    I have a path such as 'D:\Cycling - My Mountain Route.mp4' how can I assign this path to OBS Media Source with websockets using PYTHON code ? I tried this : sourceName = 'Media Source' Local_file = 'D:\Cycling - My Mountain Route.mp4'...
  4. R

    Python, Hiding Rust Map

    Hi folks, I've been working on this for the better part of a week but simply cannot find an elegant solution. Ideally, AutoHotKey would solve my problems, or there's a "fancy" Python script available on the internets that would also suit my needs. But I'm a Mac guy, and AutoHotKey is not...
  5. kazzle101

    Free midiObsWS - Control OBS with a MIDI device. 0.3

    A program to allow OBS to be controlled by a MIDI device via obs-Websockets. This has been written to provide basic functionality; scene switching, volume control and allow operation of the main controls such as recording, streaming and the virtual camera. Written in Python 3.9, use OBS v28 or...
  6. amias

    OBS Python OBS-Cycle 1.0

    An OBS Python script that allows a hotkey to trigger a step through the scenes at a configurable interval
  7. R

    OBS stops responding when setting scene within timer callback (Python Script)

    Hi all, I've been working on a python script which is a countdown timer pretty much like the Advanced Scene Switcher, but with customised funcionality for myself. The timer callback seems to work just fine, however when I try to set the scene from within the timer_callback function, the log...
  8. R

    OBS crashes when switching scene during a timer_add (Python scripting)

    Hi, I'm still quite new to scripting for OBS and I'm trying to make a timer for switching scenes for my own purposes in python, since it's the language I'm the most used to. Inside my callback function for the timer, I added the obs.obs_frontend_set_current_scene(scene) which is causing OBS to...
  9. R

    (Python) Memory management in scripts?

    I don't usually write programs or scripts which require memory management, so I have been looking at some scripts which has code like obs_data_get_array and later on they release the array using obs_data_array_release. When do I have to release references? When I am doing properties references...
  10. I

    [Help] Python script OBS help needed [Additional Replay Buffer]

    I'm trying to use this script to implement multiple replay buffer timers, so you can get the last 1, 5 or 10 minutes of your current gameplay depending on how you configure it. The script run good at the beginning when obs is being just launched, however after some 10 minutes or so, the script...
  11. D

    OBS Python Show / Hide Transition Timers for Multiple Scene Items / Sources v0.1

    Hey there! So, this is a python script that will allow the user to have multiple timers that will trigger the scene item's (or "source's" as it's called in OBS) show / hide transitions. This is a pretty alpha version, so bugs may be present. The repeat timer was extensively tested by me to...
  12. nhielost

    obs-midi-python [Deleted]

    nhielost submitted a new resource: obs-midi-python - Allows MIDI devices to control OBS through message bindings. Read more about this resource...
  13. X Kevin Tran

    Get frame by frame from OBS to CV2 Python socket server

    Link: Please help me to fix that code and share all your scripts. Thanks!
  14. M

    OBS is already running when using "multiprocessing" package in Python

    When opening another process in Python in one of my OBS scripts I always get an "OBS Studio is already running" message. Is there some way to silence these messages?
  15. rei2888

    How do i get the text string from an existed text source with python

    Hello, I want to write a python script, to get the text string from an existed GDI+ text source,and print this text string。 But i can't find a way or funtion to get the text string.Could somebody help me? Thanks Rei
  16. C

    Create video/webcam sources in a script

    Hello, This is my first post here so sorry if I am not perfectly clear. I try to create sources with a script, one for a webcam and a second for a rtsp video flux. It can be in Lua or in Python if possible but it seem if I don't make a mistake that it was not possible in Python. I have looked...
  17. O

    OBS Studio crashes with "timer_add"

    Hello everyone! I have a problem with running a script in the OBS Studio There is a "check_and_switch" function, and I want to call it every 3 seconds When I call it in this way "check_and_switch()" - everything works properly (but the function is called once) But when I write...
  18. J

    Accessing the bandwidth test checkbox

    Hello coders, I have written a short script to post a live notification to my discord webhook when I start streaming. What bothers me is that this even happens when I activate the "bandwidth test mode" under Settings -> Stream -> Platform Twitch and hit "Start Streaming". Is there a way to...
  19. felix_f

    Additional shortcut keys from script

    Hi, I would like to remap some keys from a second keyboard using python to use them as macro keys for other apps (mainly obs). I have the script mostly done, but I have a problem simulating a key press that is not used already, and that obs will actually like. As you can see below, I can either...
  20. H

    websocket ptz camera support

    Hello, I found that OBS Studio's websocket switching of cameras really easy to get working. Can I also control a PTZ camera as well using websockets? Thank you!