|
3 | 3 | from os.path import dirname
|
4 | 4 |
|
5 | 5 | from sleuthdeck.actions import MaximizeWindow, Toggle, UnMaximizeWindow, DeckBrightness, Sequential, ChangeScene, \
|
6 |
| - PreviousScene |
| 6 | + PreviousScene, Wait |
7 | 7 | from sleuthdeck.actions import MoveWindow
|
8 | 8 | from sleuthdeck.actions import SendHotkey, Command, CloseWindow, Pause
|
9 | 9 | from sleuthdeck.deck import Deck
|
@@ -33,7 +33,7 @@ def run(deck: Deck):
|
33 | 33 | title_scene_item="Title",
|
34 | 34 | byline_scene_item="Byline",
|
35 | 35 | title_scene="Me full (title)",
|
36 |
| - overlay_scene="[Scene] Lower-third") |
| 36 | + overlay_scene="[Scene] Lower-third (labels)") |
37 | 37 |
|
38 | 38 | scene1.add(
|
39 | 39 | (0, 0),
|
@@ -144,7 +144,13 @@ def run(deck: Deck):
|
144 | 144 |
|
145 | 145 | webinar_scene.add(
|
146 | 146 | (0, 0),
|
147 |
| - OBSKey(text="Intro", actions=[obs.change_scene("Starting soon")]), |
| 147 | + OBSKey(text="Intro", actions=[presso.reset(), |
| 148 | + obs.change_scene("Starting soon"), |
| 149 | + Wait(62), |
| 150 | + obs.start_recording(), |
| 151 | + obs.change_scene("Intro video"), |
| 152 | + Wait(6), |
| 153 | + obs.change_scene("Me full")]), |
148 | 154 | )
|
149 | 155 | webinar_scene.add(
|
150 | 156 | (0, 1),
|
@@ -196,52 +202,52 @@ def run(deck: Deck):
|
196 | 202 |
|
197 | 203 | webinar_scene.add(
|
198 | 204 | (1, 2),
|
199 |
| - OBSKey(text="Chat", actions=[obs.toggle_source("Title", False, "[Scene] Lower-third"), |
200 |
| - obs.toggle_source("Byline", False, "[Scene] Lower-third"), |
201 |
| - obs.toggle_source("Chat highlight", True, "[Scene] Lower-third"), |
202 |
| - ]), |
203 |
| - ) |
204 |
| - webinar_scene.add( |
205 |
| - (1, 3), |
206 |
| - OBSKey(text="Section", actions=[ |
207 |
| - obs.toggle_source("Chat highlight", False, "[Scene] Lower-third"), |
208 |
| - obs.toggle_source("Title", True, "[Scene] Lower-third"), |
209 |
| - obs.toggle_source("Byline", True, "[Scene] Lower-third"), |
| 205 | + FontAwesomeKey("brands/rocketchat", text="Chat", actions=[ |
| 206 | + Toggle(on_enable=[obs.toggle_source("Title", False, "[Scene] Lower-third (labels)"), |
| 207 | + obs.toggle_source("Byline", False, "[Scene] Lower-third (labels)"), |
| 208 | + obs.toggle_source("Chat highlight", True, "[Scene] Lower-third (labels)"), |
| 209 | + ], |
| 210 | + on_disable=[ |
| 211 | + obs.toggle_source("Chat highlight", False, "[Scene] Lower-third (labels)"), |
| 212 | + obs.toggle_source("Title", True, "[Scene] Lower-third (labels)"), |
| 213 | + obs.toggle_source("Byline", True, "[Scene] Lower-third (labels)"), |
210 | 214 |
|
211 |
| - ]), |
| 215 | + ])]) |
212 | 216 | )
|
213 | 217 | webinar_scene.add(
|
214 | 218 | (1, 4),
|
215 | 219 | FontAwesomeKey("solid/camera", text="T Cam", actions=[obs.toggle_source("[Scene] Me corner (shadowed)"),
|
216 |
| - ]), |
| 220 | + ]), |
217 | 221 | )
|
218 | 222 |
|
219 | 223 | webinar_scene.add(
|
220 | 224 | (2, 0),
|
221 | 225 | OBSKey(text="Both", actions=[obs.change_scene("Me and Guest")]),
|
222 | 226 | )
|
223 | 227 |
|
224 |
| - # webinar_scene.add( |
225 |
| - # (2, 1), |
226 |
| - # OBSKey(text="Guest", actions=[obs.change_scene("Guest full")]), |
227 |
| - # ) |
228 |
| - # |
229 |
| - # webinar_scene.add( |
230 |
| - # (2, 2), |
231 |
| - # OBSKey(text="Share", actions=[obs.change_scene("Guest screenshare")]), |
232 |
| - # ) |
233 | 228 | webinar_scene.add(
|
234 | 229 | (2, 1),
|
235 |
| - OBSKey(text="Commercial", actions=[obs.change_scene("Commercial")]), |
| 230 | + OBSKey(text="Guest", actions=[obs.change_scene("Guest full")]), |
236 | 231 | )
|
237 | 232 |
|
| 233 | + # webinar_scene.add( |
| 234 | + # (2, 2), |
| 235 | + # OBSKey(text="Share", actions=[obs.change_scene("Guest screenshare")]), |
| 236 | + # ) |
238 | 237 | webinar_scene.add(
|
239 | 238 | (2, 2),
|
240 |
| - OBSKey(text="News", actions=[obs.change_scene("News")]), |
| 239 | + OBSKey(text="Commercial", actions=[obs.change_scene("Commercial")]), |
241 | 240 | )
|
| 241 | + # |
| 242 | + # webinar_scene.add( |
| 243 | + # (2, 2), |
| 244 | + # OBSKey(text="News", actions=[obs.change_scene("News")]), |
| 245 | + # ) |
242 | 246 | webinar_scene.add(
|
243 |
| - (2, 0), |
244 |
| - OBSKey(text="End", actions=[obs.change_scene("Ending")]), |
| 247 | + (2, 3), |
| 248 | + OBSKey(text="End", actions=[obs.change_scene("Ending"), |
| 249 | + Wait(2), |
| 250 | + obs.stop_recording()]), |
245 | 251 | )
|
246 | 252 |
|
247 | 253 | webinar_scene.add(
|
|
0 commit comments