![]() Part 1: Custom user interface tutorial and Part 2: Custom user interface, Adding sources and scenes by More Backgrounds Please in Lua.Other tutorial resources (feel free to add something): The Halftone Filter tutorial is an example of shader-based video filter in Lua.Start with the Source Shake tutorial that shows how to animate a source displayed in a scene with a hotkey and customizable properties, in Python and Lua.There is no official supporting file for features such as Intellisense so far. A OBS Lua Cheat Sheet by MoreBackgroundsPlease (Heavily inspired by upgradeQ's cheatsheet)Ī bare text editor is the only thing you need to get started, but prefer the IDE of your choice for a more comfortable editing.The forum page Tips and tricks for Lua scripts.An extensive OBS Python cheat sheet by upgradeQ (thanks to upgradeQ for this huge collection of code snippets).Example scripts delivered with OBS in /data/obs-plugins/frontend-tools/scripts.These resources can be helpful (feel free to add something): ![]() The rest of the API is documented in the original C flavour only, there is no documentation of the functions and data structures as seen from the scripting environment so far. Scripting-specific API features are described in the OBS scripting documentation. OBS has a huge API of C functions and data structures. Supported for pure Lua modules, probably possible but complex for modules with binary in Wireshark, VLC, RPM, etc), poor standard library (use the OBS API or FFI to fill the gaps) Sparse usage mainly as embedded scripting extension (e.g. Wide usage for everything, full-featured standard library, etc Lua is by far less popular and less powerful than Python, but it is a bit simpler (on purpose, to reduce complexity and footprint in the embedding executable) and better integrated in OBS (as of v26.1): Criteria on Windows 10 with Python installed from the Microsoft Store, the installation path is located at %LocalAppData%\Programs\Python\Python310.Ĭomparison of Python and Lua for scripting in OBS Depending on the Python installation, locating the installation path can be difficult, e.g. Please refer to the OBS scripting documentation for the supported version of Python (currently Python 3.6-3.10). Use the □ button to Reload Scripts and the Defaults button to reset the values of the editable properties to their default values.įor Python scripts, a decent distribution of Python must be installed by the user, and the Python Install Path must be set in the tab Python Settings. ![]() A script can be added by clicking on + and selecting the related Python or Lua file, removed with. On the right hand side, if any, the description and editable properties of the script are shown. Scripts are managed by the user through the Scripts dialog window, displayed via the menu item Tools > Scripts:Ī list of scripts currently added to OBS is displayed on the left hand side (here two scripts distributed with OBS). This set of pages explains the basics to get started and describes how to implement common features. OBS can be extended with Python and Lua scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |