Hey guys,
I'm working on a pretty simple (at least it should be) plugin/script.
What I want to achieve is to move another source on the screen according to some data from a different program. The source will be moved every frame, like an animation.
I tried doing it as a plugin in C++, but it was far too much setup to even start developing it, and even after I got obs building in vs studio I couldn't get through the CMake hell to get make a new plugin.
Then I saw that you can use Python to run scripts in OBS, and an awesome SourceShae example script which was exactly what I needed. There is only one problem, I couldn't get Python to run an external program and receive data from it so I changed communication between the script and the program to simple TCP sockets that run on the localhost. The problem is that it's a huge pain in the ass to get that right, I'm running that socket on a different thread in Python and it crashed OBS randomly when reloading the plugin and there's no useful debug info really.
Do you think it can work better as a plugin in C++ or should a script be enough?
I've never done anything with OBS so I don't know how to approach this.
I'm working on a pretty simple (at least it should be) plugin/script.
What I want to achieve is to move another source on the screen according to some data from a different program. The source will be moved every frame, like an animation.
I tried doing it as a plugin in C++, but it was far too much setup to even start developing it, and even after I got obs building in vs studio I couldn't get through the CMake hell to get make a new plugin.
Then I saw that you can use Python to run scripts in OBS, and an awesome SourceShae example script which was exactly what I needed. There is only one problem, I couldn't get Python to run an external program and receive data from it so I changed communication between the script and the program to simple TCP sockets that run on the localhost. The problem is that it's a huge pain in the ass to get that right, I'm running that socket on a different thread in Python and it crashed OBS randomly when reloading the plugin and there's no useful debug info really.
Do you think it can work better as a plugin in C++ or should a script be enough?
I've never done anything with OBS so I don't know how to approach this.