Giter Club home page Giter Club logo

obs-scripts-examples's Introduction

OBS Scriting Examples

With Version 21.0.1 OBS has a scripting interface for both python and lua. This repository holds some example scripts. Nothing here has been rigorously tested and has no warranty. It will likely set your computer on fire.

obs-scripts-examples's People

Contributors

nibalizer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

obs-scripts-examples's Issues

Difficulty to use python script inside OBS.

I added the script(url-text.py, which is provided by obs itself) to OBS via Tools -> Scripts -> +
but What to do next, how to stream it to source and overlay some text or graphics?
I have never used this software before please help me through this.
Thank You

TypeError: 'SwigPyObject' object is not callable on obs.obs_frontend_get_current_scene()

I was playing a bit with the (Python) scripting abilities, but ran into issues with calling obs.obs_frontend_set_current_scene().

It returns a TypeError: 'SwigPyObject' object is not callable.

def cycle():
scenes = obs.obs_frontend_get_scenes()
current_scene = obs.obs_frontend_get_current_scene()
scenes.remove(current_scene)
obs.obs_frontend_set_current_scene(random.choice(scenes))

[autoswitcher.py] File "C:/Users/xxx/OneDrive/Documenten\autoswitcher.py", line 70, in cycle
[autoswitcher.py] obs.obs_frontend_set_current_scene(random.choice(scenes))
[autoswitcher.py] TypeError: 'SwigPyObject' object is not callable

OBS Version 27.1.3 with Python 3.6.8 (64-bit) on Windows 11.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.