forked from katarai/obs-whiteboard-lua
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.lua
More file actions
38 lines (29 loc) · 1.22 KB
/
main.lua
File metadata and controls
38 lines (29 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
local create_whiteboard = require('whiteboard').create_whiteboard
local create_source = require('source').create_source
function script_load(settings)
end
function script_update(settings)
end
function script_save(settings)
end
function script_properties()
return obs.obs_properties_create()
end
function script_defaults(settings)
end
function script_description()
-- Using [==[ and ]==] as string delimiters, purely for IDE syntax parsing reasons.
return [==[Adds a whiteboard source type which can be used to draw annotations on your scene while recording.
Add a whiteboard source on top of your scene, then right click your scene and choose "Windowed Projector". You can then draw on that projector window.
The following keyboard shortcuts are available while the projector window is focused (these shortcuts cannot currently be modified):
- 1-9: select brush color
- 0: select eraser
- +/-: increase or decrease the size of your brush/eraser
- e: toggle between brush and eraser
- a: toggle brush to or from arrow mode
- backspace: undo previous change
- c: clear whiteboard (this cannot be undone)]==]
end
local whiteboard = create_whiteboard()
local source = create_source(whiteboard)
obs.obs_register_source(source)