From 650a8d48bd9b7b54e4f76753376d071aba2a2c82 Mon Sep 17 00:00:00 2001 From: gator Date: Sun, 20 Sep 2026 14:05:34 +0000 Subject: [PATCH] Choose how a speaking shot's sound is made --- trailer.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/trailer.html b/trailer.html index e20d540..26f0db6 100644 --- a/trailer.html +++ b/trailer.html @@ -1098,7 +1098,16 @@ return '
' + '
'; + + '" placeholder="For example: his left hand stays in his jacket pocket the whole time.">' + + ((s.audio || []).some(function (a) { return a.lip_sync; }) + ? '' : '') + + ''; } // Several versions of one picture, best first, each with what the checker @@ -1759,6 +1768,16 @@ }, 700); }); + document.getElementById("pane").addEventListener("change", async function (e) { + var el = e.target; + var asid = el.getAttribute && el.getAttribute("data-audiomode"); + if (!asid) return; + var inp = document.querySelector('[data-filmnote="' + asid + '"]'); + var r = await api("set_film_note", { draft_id: CUR, shot_id: asid, note: inp ? inp.value : "", audio_mode: el.value }); + if (r.ok) { (PKG.shots || []).forEach(function (x) { if (String(x.id) === asid) x.audio_mode = el.value; }); + showMsg("msg", "Saved. Press “Film it again” to hear the difference.", "ok"); } + }); + var noteTimers = {}; document.getElementById("pane").addEventListener("input", function (e) { var ta = e.target;