Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Editor generation bar: @characters in a part's description become subjects, numbered as pictures

Bowen Xue93ab4611ff9d
diff --git a/web/editor.js b/web/editor.js
index d9043eb..d0dda2c 100644
--- a/web/editor.js
+++ b/web/editor.js
@@ -28,6 +28,7 @@ import {createFirstRunGuide} from './first_run_guide.js';
import {createEditorFailures} from './editor_failure.js';
import {fitEditorHeader} from './editor_header_fit.js';
import {optionalText} from './optional_inputs.js';
+import {expandCast} from './cast_mention.js';
const editorStyles = Promise.all(['result_actions.css', 'editor.css', 'editor_expand.css', 'editor_tracks.css', 'editor_frame.css', 'editor_adjust.css', 'editor_adjust_picture.css', 'editor_preview_picture.css', 'editor_select.css', 'editor_menu.css', 'editor_text.css', 'editor_notes.css', 'editor_transport.css'].map(name => {
const style = document.createElement('link'); style.rel = 'stylesheet'; style.href = new URL(name, import.meta.url).href;
const ready = 'sheet' in style ? new Promise(resolve => { style.onload = style.onerror = resolve; }) : Promise.resolve();
@@ -784,7 +785,11 @@ export function openEditor({api, app, from = null, panel = {}, components: given
const values = new Uint32Array(1);
if (globalThis.crypto?.getRandomValues) crypto.getRandomValues(values); else values[0] = Math.floor(Math.random() * 2 ** 32);
const seed = values[0] === lastSeed ? (values[0] + 1) >>> 0 : values[0]; lastSeed = seed;
- const blocks = request.blocks.map(({before, ...block}, i) => ({...block, seed: seed + i}));
+ // An @name in a description becomes <Subject N> and its definition, as in the creative panel; a part that
+ // continues carries only the pictures the engine keeps for it, and is numbered among them.
+ const castRows = panel.references?.available() ? panel.references.rows?.() ?? [] : [];
+ const blocks = request.blocks.map(({before, ...block}, i) => ({...block, seed: seed + i,
+ text: expandCast(block.text, castRows, {continued: Boolean(block.after)}).text}));
const job = await store.startChain({...frozen, blocks});
if (!job && !store.generationAvailable) {
if (epoch === projectEpoch) {