Python suport

Oke.
Than i request python suport for making (complex) overlays with dynamic content.
For example a simple clock to a complex system like a screen with a irc bot and a donation ticker.
And i have make mockup script as a non working demo and feature in complete:
Code:
import time
import obs   #load the Open broadcaster software python api

ScriptInfo = {
'Name':"clock demo",
'Version':'0.0.1',
'refresh':1,  #execute the loop funcion once a second
'size':(30,250), #sett the windows size of 30px by 250px
}

class demoClock:
  def __init__(self,screen):
  self.screen = screen
  self.collor = 'ffff00' #set collor to yellow
  self.font = self.screen.loadfont('demo.tff',25)  #load a demo font and set the font size to 25
  
  def loop(self)
  time = time.strftime("%H:%M:%S")  #get system time and confert to HH:MM:SS
  self.screen.print(time,(2,2),self.font,self.collor)  #print text on screen and
  self.screen.flip() #Update the stram
  
obs.AddNewSource(ingameclock,demoClock)
 
Last edited:
You're of course free to request it, but there are no plans to add it. OBS is free open source software, if someone wants to contribute support for Pyhton-based plugins, they can of course do so.
 
We plan on adding support for scripting to rewrite eventually, and I don't mind support for multiple scripting languages. I feel like scripting is super important for bigger broadcasts.

If you have experience with C/C++ and think you can add a plugin to support for python scripting to our new version, contact me or come to #obs-dev on quakenet to talk about implementation. I implemented the core with support for scripting in mind so I definitely want scripting if someone's able to implement it, but it's not up on my personal agenda quite yet.
 
Back
Top