From 9ada432a4b70b27ecd2553415b96c8d17656ef9b Mon Sep 17 00:00:00 2001 From: gator Date: Sat, 19 Sep 2026 19:21:09 +0000 Subject: [PATCH] Change the words of a spoken line by hand --- trailer.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/trailer.html b/trailer.html index 8599d5f..7a90630 100644 --- a/trailer.html +++ b/trailer.html @@ -1186,13 +1186,16 @@ + '

' + esc(String(s.rough || "").slice(0, 300)) + '

'; } - var lines = (s.audio || []).map(function (a) { + var lines = (s.audio || []).map(function (a, ai) { var who = voice[a.character_id] || {}; return '
' + '' + '
' + esc(who.name || a.character_id) + ' ' + (a.lip_sync ? 'on camera' : 'voice over') + '
' + esc(a.text || "") + + '
change the words' + + '' + + '
' + (a.delivery ? '
' + esc(a.delivery) + '' : '') + '
'; }).join(""); @@ -1513,6 +1516,14 @@ + "automatically. This takes a few minutes." : (r.note || "Already checked."), "ok"); await refresh(); } return; } + if ((el = hit("data-lineset"))) { + var lk = el.getAttribute("data-lineset"), lp = lk.split("|"); + var lin = document.querySelector('[data-linetext="' + lk + '"]'); + el.disabled = true; + r = await act("set_line", { draft_id: CUR, shot_id: lp[0], index: Number(lp[1]), text: lin ? lin.value : "" }); + if (r) { showMsg("msg", "Saved. The voice will be recorded again with the new words the next time it is played or filmed.", "ok"); await refresh(); } + return; + } if ((el = hit("data-findprops"))) { el.disabled = true; r = await act("find_props", { draft_id: CUR });