@@ -34,10 +34,6 @@ utilising built-in embedded LuaJIT interpreter, filter UI and function environme
34
34
- Open ` Script Log ` to view ` Console ` output.
35
35
- Type some code into the text area.
36
36
- Press ` Execute! ` .
37
- - Sample code: ` print(obs_frontend_get_current_scene_collection()) `
38
- - [ Examples & Cheatsheet (python)] ( https://github.com/upgradeQ/OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API )
39
-
40
- # REPL usage
41
37
42
38
Each Console instance has it's own namespace ` t ` and custom environment,
43
39
you can access source which Console is attached to. e.g:
@@ -383,24 +379,29 @@ error('done') else error('not done') end
383
379
` sname(source) ` - returns source name as string
384
380
385
381
` sceneitem = get_scene_sceneitem(scene_name, scene_item_name) `
382
+ # Notes on exceptions
383
+ There might be exceptions in your code, it is recommended to add ` print('start') ` and ` print('end') ` statements to debug code in ` Console `
386
384
387
385
# Snippets
388
386
* ` On/off sceneitem every 2.5 seconds ` - source must be a scene
389
387
* ` Loop media source between start and end via hotkey ` - adds two hotkeys to set and clear loop (` 1; ` and ` 2; ` )
390
388
* ` Write internal stats to text source ` - based on [ ` OBS-Stats-on-Stream ` ] ( https://github.com/GreenComfyTea/OBS-Stats-on-Stream )
389
+ * ` Update browser every 15 minutes `
390
+ * ` Overwrite maximum render delay limit `
391
391
392
392
# Contribute
393
393
Contributions are welcome! You might take a look into source code for translation of UI to your language.
394
394
395
395
# On the Roadmap
396
- - Hook keyboard, hook mouse position for winapi and x11 using cdefs (using community packages)
397
- - Add more functions to control browser source
396
+ - Hook keyboard events , hook mouse position for winapi and x11 using cdefs (using community packages)
397
+ - Add more functions to control & interact with browser source
398
398
- Add more snippets
399
- - Record source settings changes and replay it
399
+ - Port and test on 32-bit, add advanced versioning, make it forward compatible
400
400
401
401
# See also
402
402
* [ pure Lua custom shader loader ] ( https://github.com/ps0ares/CustomShaders )
403
403
* Advanced scene switcher [ plugin] ( https://github.com/WarmUpTill/SceneSwitcher )
404
+ * [ Examples & Cheatsheet (python)] ( https://github.com/upgradeQ/OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API )
404
405
405
406
# License
406
407
<a href =" https://www.gnu.org/licenses/agpl-3.0.en.html " >
0 commit comments