Can you add Nodejs scripting?

Bigmacbook

New Member
It's pretty cool with the lastest release of OBS Studio you added scripting for lua and python, but can you please support nodejs.

I've tried using lua, but can't get any modules to compile. I've tried python but there is a lack of modules I'm looking for.

Also I know nothing about lua and python.

Nodejs has plenty of modules that don't require compiling.
 

dodgepong

Administrator
Community Helper
We investigated adding V8 support, but apparently it would be an absolutely nightmare to get working.

I'm surprised you weren't able to find a Python module that would work for what you want to do; Python has a pretty extensive body of libraries.

As for Lua modules, I believe you just need to either set package.path or package.cpath at the top of your script to make sure the modules are seen and can be imported properly.

What are you trying to do?
 

Bigmacbook

New Member
I want to call http requests and socket.io in lua, but not finding anything useful nor would I know how to set it up.
 

ErraticFox

New Member
We investigated adding V8 support, but apparently it would be an absolutely nightmare to get working.

I'm surprised you weren't able to find a Python module that would work for what you want to do; Python has a pretty extensive body of libraries.

As for Lua modules, I believe you just need to either set package.path or package.cpath at the top of your script to make sure the modules are seen and can be imported properly.

What are you trying to do?

Did you guys ever make progress on this? As I've been developing using Node for the last couple years and I've been really wanting to make some extensions for OBS (which have been requested by some people I know) and am fully capable if you had Node support, though I'm not so great with other languages.
 

dodgepong

Administrator
Community Helper
No. As I said, adding V8 support would be a nightmare, and as such, nobody has bothered to work on it.
 
Top