You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,10 @@ _Optionally create media source_
7
7
- Open `Tools>Scripts`
8
8
- select this script
9
9
- set settings for it, change duration and refresh rate
10
-
- preview it if need,
10
+
- preview it if needed,
11
+
- reset if needed,
11
12
- set hotkey in `File>Settings`
12
-
# Current implemented text effects
13
+
# Example text effects
13
14
- static
14
15
> just show text
15
16
> cycle threw colors
@@ -18,10 +19,18 @@ _Optionally create media source_
18
19
-
19
20
> loading text
20
21
-
21
-
> tremor effect NEW
22
+
> tremor effect
22
23
-
23
-
> sanic effect NEW
24
-
-
24
+
> sanic effect
25
+
-
26
+
# How it works
27
+
There is two classes:
28
+
-`TextContent` - updates text
29
+
-`Driver` - interacts with obs properties and controls execution
30
+
31
+
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`.
32
+
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
+
25
34
# Contribute
26
35
[Forks](https://help.github.com/articles/fork-a-repo) are a great way to contribute to a repository.
27
36
After forking a repository, you can send the original author a [pull request](https://help.github.com/articles/using-pull-requests)
0 commit comments