Skip to content

Commit 5f9ecd8

Browse files
committed
1.0.0 📦
1 parent 5811bde commit 5f9ecd8

File tree

2 files changed

+408
-115
lines changed

2 files changed

+408
-115
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ If you need additional effects , copy paste `scripted_text.py` , and add it agai
3030
- `TextContent` - updates text
3131
- `Driver` - interacts with obs properties and controls execution
3232

33-
Interaction with obs happens on instance of `Driver` - *scripted_text_driver* it will update source name, scirpted text, selected effect and more according to settings from UI. Hotkey handling via `script_save` and `script_load` with callback on *scripted_text_driver* `hotkey_hook`. Note this callback is also attached to `PREVIEW` button in settings. It will trigger `obs_timer` , set `lock` to `False` (to run single callback at time). `obs_timer` will execute `ticker` with `interval` aka `refresh_rate`. `ticker` will execute selected text effect from settings ,substract `refresh_rate` from `duration` , check if its <= 0,then reset everything to initial state,remove itself via `obs.remove_current_callback`.
34-
To create a text effect , this naming `someefect_effect` is required and also adding it to `effects_list` in `load`. Text effects use inherited method `update_text` to update text one tick at time.
33+
Interaction with obs happens on instance of `Driver` - *std* it will update source name, scirpted text, selected effect and more according to settings from UI. Hotkey handling via `script_save` and `script_load` with callback on *std* `hotkey_hook`. Note: this callback is also attached to `PREVIEW` button in settings. It will trigger `obs_timer` , set `lock` to `False` (to run single callback at time). `obs_timer` will execute `ticker` with `interval` aka `refresh_rate`. `ticker` will execute selected text effect from settings ,substract `refresh_rate` from `duration` , check if its <= 0,then reset everything to initial state,remove itself via `obs.remove_current_callback`.
34+
To create a text effect , this naming `someefect_effect` is required. Text effects use inherited method `update_text` to update text one tick at time.
3535

3636
# Contribute
3737
[Forks](https://help.github.com/articles/fork-a-repo) are a great way to contribute to a repository.

0 commit comments

Comments
 (0)