Compare commits

...
1 Commits
11 changed files with 319 additions and 71 deletions
+1
View File
@@ -2,6 +2,7 @@
Condensed version-by-version index of DEVLOG.md (each line: version + one-line summary of what changed and why). Full rationale, code details, and "How to apply" lessons live in the excluded DEVLOG.md itself; this index exists so graphify can extract a queryable semantic node per release without feeding the full log to the local Ollama model. Regenerate with `python tools/generate_doc_index.py devlog` whenever DEVLOG.md changes.
- **v0.5.7** — 設定エクスポート/フルバックアップのドキュメント修正: v0.5.5のVideo Plan機能追加分の言及漏れ
- **v0.5.6** — バグ修正: WD Taggerで不正確なタグが生成される問題を修正(GitHub Issue #1)
- **v0.5.5** — Videoタブ全面刷新: Plan/Asset/Editバッチ生成 + Projectサブタブ + プレビュー2ペイン化 + Video Assets/Video Temp運用整理 + Galleryメタデータ消失バグ根本修正
- **v0.5.4** — 機能追加: Video/GenerateUIタブのLTX-2.5・Wan2.2対応拡大 + AI Assistant設定のUnsloth対応・独立モーダル化・モデルアンロード機能
+28
View File
@@ -2,6 +2,34 @@
---
## v0.5.7
### 設定エクスポート/フルバックアップのドキュメント修正: v0.5.5のVideo Plan機能追加分の言及漏れ
「Videoプランの追加で設定のエクスポート、バックアップ機能の更新が必要では」との確認依頼を受けて調査。v0.5.5で追加された`video_plan/`ディレクトリ(Plan JSON+インデックスPNG、`lab_plan/`と同構造)が、フルバックアップZIP機能の説明文言から漏れていないか確認した。実装(`_build_full_backup_zip`)自体は`DATA_DIR`配下のトップレベルエントリを汎用的に走査する設計(除外リスト`_FULL_BACKUP_EXCLUDE_NAMES`は`gmic_temp`/`thumb_cache`/`wildcard`の3つのみ)のため、`video_plan/`は既存コードの変更なしに自動的にバックアップ対象へ含まれていた——つまり機能的な欠陥は無かった。一方、ユーザー向け説明文(`fullBackupHint`/`helpSettings15`のi18n.js3言語、README.mdのFull Backup説明、`settings_routes.py`のコード内コメント)は「AI Skills、Lab Plans、Style presets」という列挙のままVideo Plan機能追加時に更新されておらず、実際にバックアップされるデータの説明として不正確になっていた。該当6箇所+READMEを「Video Plans」を含む形に修正。
### Video Plan (Planサブタブ) 中央パネルの設定項目レイアウト刷新 + MiniMax H3 Turbo/LTX-2.5 Prompt Enhance/Wan2.2 Turbo対応
「Duration・Noise SeedをMultipleの右隣に移動し、その下に新しい行でWidth/Height/MiniMaxのturbo_mode/strength/steps・LTX-2.5のprompt_enhance・Wan2.2のenable_turbo_mode(MiniMaxのturbo_modeと兼用)を追加したい」との要望。着手前にComfyUI_5環境の直近保存ワークフロー(`minimax_turbo.json`、LTX-2.5の`ltx_25_test`/`test2`/`test3`、Wan2.2の`wan22_test`/`test2`/`test3_i`)を実際にPythonでパースしてサブグラフの公開入力を調査し、対応可否を事前検証してから実装した。
調査で判明した構造: MiniMax H3は`turbo_mode`(BOOLEAN)/`turbo_model_strength`(FLOAT、LoRA強度)/`turbo_steps`(INT)をサブグラフの直接ウィジェットとして公開しており、これらがユーザーの言う「strength」「steps」に対応する。LTX-2.5は3バリアントとも`prompt_enhance`(BOOLEAN)を公開。Wan2.2は`enable_turbo_mode`(BOOLEAN)を公開しており、MiniMaxの`turbo_mode`と意味的に同一のためUI上は1つの「Turbo Mode」欄として兼用する設計にした。width/heightはMiniMax・LTX-2.5のText/Image版ではResolutionSelector経由(サブグラフ入力がリンク接続されている)だが、LTX-2.5のFirst & Last Frame版とWan2.2は全バリアントでResolutionSelectorを持たずサブグラフの直接ウィジェット値のまま——既存コードのコメント通りの構造を実データで確認できた。noise_seedは全ファミリーで`name="noise_seed"`に統一されている(LTX-2.5のText to Videoのみ`label="seed"`を持つため、ラベルではなくname直接一致で検索するヘルパーを新設)が、**Wan2.2のText to Videoだけサブグラフの公開入力に`noise_seed`が存在しない**(Image to Videoにはある)という非対称性を発見した。
実装は`video-workflow.js`の`locateVideoModelNodes()`を拡張し、上記7項目(width/height直接指定用インデックス、noise_seed、turbo_mode、turbo_strength、turbo_steps、prompt_enhance)のインデックスを検出して返すようにした(対応する入力が無ければ-1を返し、呼び出し側で無効化・非ハイライトの判断に使う)。既存のAspect Ratio/Megapixels/Multipleと全く同じ「ワークフローが対応する場合のみ入力可能+ラベルハイライト」の仕組みで新規7項目も統一し、新しい選択UIを作らず既存の`wfm-model-label-active`パターンを再利用した。noise_seedについては値の書き込みロジックをあえて追加しなかった——`comfyUI.generate()`がAPI変換後のワークフロー全体から`noise_seed`/`seed`キーを持つ全ノードを一括で上書きする既存の`applySeedToWorkflow()`が必ず後から実行されるため、`applyBlockToWorkflow()`側で書いても意味がなく、Plan全体のシード管理は引き続きそちらに一任する設計とした。
UI面ではDuration(元々ブロックごとの独立値)とNoise Seed(Plan全体で共有)を、機能的な性質は変えずにDOM位置だけtopbarのbasesettings行へ移動した。Durationはブロックエディタの`innerHTML`再生成に巻き込まれない固定要素にする必要があったため、change時のリスナー登録をブロック切替のたびに再アタッチする方式から、初期化時に一度だけ登録し値の同期のみブロック切替時に行う方式(`_initDurationControl()`新設)に変更した。新規7項目は`_plan.base_settings`に追加しPlan保存/読込(`_buildPlanData`/`_applyPlanData`)にも対応させた——Aspect Ratio等と同様Plan全体で共有する値とし、ブロックごとには持たせない設計とした。
実機検証はComfyUI_5(ユーザーが起動中のポート8189、8188に誤って重複起動してしまった分は作業後に停止)上でKaptureブラウザ操作により実施。MiniMax H3ワークフローで`Turbo Mode`/`Strength`/`Steps`が正しくハイライト・値反映され`Width`/`Height`は無効化されること、LTX-2.5 First & Last Frame版で`Width`/`Height`が有効化・ハイライトされること、Wan2.2 Text to Videoで`Noise Seed`のみ非ハイライト(disabled)になり`Turbo Mode`はハイライトされること、ブロック追加後にDurationがブロックごとに独立して保持される(1つ目=5秒のまま、2つ目=7秒に変更後も1つ目に戻ると5秒を維持)ことを、DOM要素のクラス・disabled状態を直接読み取って確認した。
ヘルプ文言は`helpVideo1`/`helpVideo2`/`helpVideo10`をindex.html・i18n.js(英日中3言語)・app.jsの`helpIdMap`の3点セットで更新——`helpIdMap`自体は既存のキーマッピングをそのまま流用でき変更不要だったが、`applyI18nToHtml`が起動時にi18n.jsの内容でDOM要素を上書きする一方でindex.html側の静的テキストが更新漏れになっていたため、ソース整合性のため合わせて修正した。README.mdのVideo Tabセクション(Plan/Edit subtabsの基本設定説明、Field highlight colorの対象フィールド一覧)も新規7項目を反映して更新した。
**検証**: `node --check`で変更した全JSファイルの構文確認。実機(ComfyUI_5、ポート8189)でMiniMax H3/LTX-2.5(First & Last Frame版)/Wan2.2(Text to Video版)の3ワークフローをKapture経由で実際にロードし、ハイライト・disabled状態・値反映・ブロックごとのDuration独立性をDOM評価で確認。開発元gitリポジトリと実行時`custom_nodes`フォルダは別実体のため([[project_dev_deploy_sync]]参照)、変更ファイル(`video-workflow.js`/`video-plan-tab.js`/`i18n.js`/`index.html`/`video-tab.css`)を都度両フォルダへ同期し`diff`で完全一致を確認。
**How to apply**: UIに新しい項目を追加する際、「ワークフローによって対応する場合のみ有効化・ハイライトする」という既存パターンが確立している画面では、新規に選択UIやトグルを作らず既存の仕組み(本プロジェクトでは`wfm-model-label-active`クラス+ラベルID登録)にそのまま乗せるのが一貫性を保ちやすい([[feedback_reuse_existing_ui_before_building_new]])。同系統に見えるモデルファミリー間でも、実際のワークフローJSONをパースして公開入力の有無を確認しないと「あるはず」の項目が無い非対称性(今回のWan2.2 Text to VideoのNoise Seed欠如)を見落とす——README/ヘルプ文言に「ワークフローXにはYが無い」という例外を書く前に、必ず実データで裏取りする。UI上は1つのフィールドとして統一表示しつつ、内部的には複数のワークフローファミリーそれぞれの異なる入力名(`turbo_mode`と`enable_turbo_mode`)にマッピングする「兼用フィールド」パターンは、意味が同じであることをコメントで明記した上でフォールバック演算子(`||`)で検出すればよく、UI側の分岐は不要になる。生成時に上流のAPI変換・送信処理(今回の`applySeedToWorkflow`)が特定のキーを一括で上書きする既存の仕組みがある場合、新規追加するフィールドの値が同じキーに書き込まれるなら、二重に値を設定するコードを書かず上流の処理に委ねる方が正確(後から上書きされる無駄なコードパスを残さない)。
関連: [[project_video_plan_asset_tab]], [[project_dev_deploy_sync]], [[feedback_reuse_existing_ui_before_building_new]]
---
## v0.5.6
### バグ修正: WD Taggerで不正確なタグが生成される問題を修正(GitHub Issue #1)
+3 -3
View File
@@ -26,7 +26,7 @@ A comprehensive workflow, asset management, and generation UI plugin for [ComfyU
- Built-in AI tools (translation and more)
![Workflow Studio](https://img.shields.io/badge/ComfyUI-Custom_Node-blue)
![Version](https://img.shields.io/badge/version-0.5.6-green)
![Version](https://img.shields.io/badge/version-0.5.7-green)
## Features (tab -> feature names)
@@ -75,8 +75,8 @@ Model Browser, Thumbnail / Table views, Table column sort, Search & Filter, User
### Image Edit Tab (v0.3.65)
Layer-based image editor, Loading images, New button, Tools, Layer panel, Layer lock, Text quality, Export, Canvas navigation, Undo / Redo
### Video Tab (v0.5.0 – v0.5.5)
Dedicated video generation UI, independent of GenerateUI, Plan / Edit subtabs, Asset / Project subtabs, Two center previews, First Frame / Last Frame are both optional, Semantic node lookup, not hardcoded IDs, Field highlight color, Load in Video, Frame tab, GIF tab, Playback volume
### Video Tab (v0.5.0 – v0.5.7)
Dedicated video generation UI, independent of GenerateUI, Plan / Edit subtabs, Base settings row, Asset / Project subtabs, Two center previews, First Frame / Last Frame are both optional, Semantic node lookup, not hardcoded IDs, Field highlight color, Load in Video, Frame tab, GIF tab, Playback volume
### AI TOOL Tab (v0.3.14)
4-pane layout, Translation pane, Chat pane, Chat pane — image generation via Tool Calling, Chat pane — generate_image extra parameters, TOOLS pane (VLM), TOOLS pane — shared Chat attachment, TOOLS pane (Wildcards), Chat pane — image-to-image (I2I), Chat pane — SVG generation, no ComfyUI workflow involved, Chat pane — Skills, Settings pane, Unsloth backend, Settings pane — Chat Image Generation, Settings pane — Chat I2I Generation, Settings pane — Generation, Model unload, Settings shared, Backend support, URL security, Lemonade's other endpoints (not integrated)
+6 -5
View File
@@ -22,7 +22,7 @@ A comprehensive workflow, asset management, and generation UI plugin for [ComfyU
- Built-in AI tools (translation and more)
![Workflow Studio](https://img.shields.io/badge/ComfyUI-Custom_Node-blue)
![Version](https://img.shields.io/badge/version-0.5.6-green)
![Version](https://img.shields.io/badge/version-0.5.7-green)
## Screenshots
@@ -231,7 +231,7 @@ An experimental batch generator: runs the workflow currently loaded in GenerateU
- ~~AI Assistant Settings~~ (removed in v0.5.4) — the central Ollama backend/URL/model panel that used to live here was replaced by a ⚙ Settings button + modal directly in the Prompt tab and the Tagger tab, each with its own independent configuration (backend, URL, model, Thinking mode, Max tokens, and a model Unload button) — see those tabs below; the AI TOOL tab's own Settings pane is unaffected
- **Video Playback Volume** (v0.5.4) — the video preview's volume is remembered here and shared across every video player in the plugin (Video tab, Gallery tab), instead of resetting to maximum whenever a different video is opened
- **Data Management** — export core settings/metadata/prompts/CivitAI cache to a single JSON file; import to restore data (useful when migrating or reinstalling); API keys are excluded from exports for security
- **Full Backup (ZIP)** (v0.5.2) — additionally covers what the JSON bundle can't represent: folder-based data (AI Skills, Lab Plans, Style presets) and the Tagger SQLite database; two opt-in checkboxes can also include ComfyUI's default workflows folder (`user/default/workflows`) and the Impact Pack's wildcard folder in the export — both of those are export-only and stored under an `_external/` prefix in the ZIP that Restore always skips, since auto-overwriting files a different plugin/ComfyUI core manages would be unsafe; copy them back by hand if needed. Restoring overwrites existing files; restart ComfyUI afterward for either restore path
- **Full Backup (ZIP)** (v0.5.2) — additionally covers what the JSON bundle can't represent: folder-based data (AI Skills, Lab Plans, Video Plans, Style presets) and the Tagger SQLite database; two opt-in checkboxes can also include ComfyUI's default workflows folder (`user/default/workflows`) and the Impact Pack's wildcard folder in the export — both of those are export-only and stored under an `_external/` prefix in the ZIP that Restore always skips, since auto-overwriting files a different plugin/ComfyUI core manages would be unsafe; copy them back by hand if needed. Restoring overwrites existing files; restart ComfyUI afterward for either restore path
- **Text Size** — one slider (10–28 px) adjusts font size for all prompt and chat textareas at once: Generate UI positive/negative prompts, AI Assistant chat input, Preset prompts, Wildcard prompt and file editor, and Metadata prompt full preview; takes effect immediately and saved with Save Settings
- **RAW JSON Colors** — customize the 6 syntax highlight colors for the Raw JSON editor in Generate UI: Default Text (base), Name/Scheduler (yellow), Title (pink), Width/Height (green), Prompt/Text (cyan), Image/File (red); changes apply immediately on color pick; Reset Defaults restores the original scheme; saved to `localStorage` under `wfm_settings.jsonColors` and applied on startup
- **GenerateUI Model Tab Highlight** (v0.3.98) — pick the color used to mark Checkpoint/VAE/Diffusion Model/Text Encoder/ControlNet/Hypernetwork labels and the LoRA column header in GenerateUI's Model tab when the loaded workflow actually contains that type of node; default bright green; changes apply immediately, Reset Defaults restores it; saved to `localStorage` under `wfm_settings.modelTabActiveColor`; the same color and mechanism also drives the Video tab's field highlighting (v0.5.4, see above)
@@ -404,15 +404,16 @@ An experimental batch generator: runs the workflow currently loaded in GenerateU
</details>
<details>
<summary><h3>Video Tab (v0.5.0 – v0.5.5)</h3></summary>
<summary><h3>Video Tab (v0.5.0 – v0.5.7)</h3></summary>
- **Dedicated video generation UI, independent of GenerateUI** — a purpose-built tab for MiniMax H3 (Image to Video), LTX-2.5 (Text / Image / First & Last Frame to Video), and Wan2.2 (Text to Video) workflows (LTX-2.5/Wan2.2: v0.5.4); does not share state with the GenerateUI tab, and model selection (UNet/CLIP/VAE/Audio VAE) is fixed to the loaded workflow's own defaults rather than editable here
- **Plan / Edit subtabs** (center panel, batch redesign in v0.5.5) — a **plan** is a sequence of timeline blocks, each a fully self-contained generation job with its own Prompt, Duration, and First/Last Image; split the timeline with **+ Split** / **+ Block** / **Delete**, then **Run** to generate every block in order (Pause/Cancel work mid-run) — a plan with a single block behaves exactly like the old one-shot form. First Image can be None, an explicit image, or "use previous block's last frame" (chaining — an explicit Last Image on the previous block always wins over extracting one from its generated output); Aspect Ratio / Megapixels / Multiple are set once as the plan's base settings (disabled for families with no Resolution Selector node, e.g. Wan2.2). Save / Save As / Clear a plan (`ws_videoplan_*.json`, with a PNG contact-sheet thumbnail that embeds the full plan data so dropping the image back on works too); Edit is reserved for future video-editing tools
- **Plan / Edit subtabs** (center panel, batch redesign in v0.5.5) — a **plan** is a sequence of timeline blocks, each a fully self-contained generation job with its own Prompt, Duration, and First/Last Image; split the timeline with **+ Split** / **+ Block** / **Delete**, then **Run** to generate every block in order (Pause/Cancel work mid-run) — a plan with a single block behaves exactly like the old one-shot form. First Image can be None, an explicit image, or "use previous block's last frame" (chaining — an explicit Last Image on the previous block always wins over extracting one from its generated output). Save / Save As / Clear a plan (`ws_videoplan_*.json`, with a PNG contact-sheet thumbnail that embeds the full plan data so dropping the image back on works too); Edit is reserved for future video-editing tools
- **Base settings row** (topbar, v0.5.7) — Aspect Ratio / Megapixels / Multiple / Duration (seconds) / Noise Seed on one row — Duration always reflects the currently selected block (each block keeps its own value), the rest are plan-wide — plus a second row of model-specific fields: Width / Height (become directly editable for workflows with no Resolution Selector node, e.g. Wan2.2 and LTX-2.5's First & Last Frame to Video), Turbo Mode / Strength / Steps (MiniMax H3's turbo LoRA — Turbo Mode doubles as Wan2.2's own turbo toggle, sharing one field), and Prompt Enhance (LTX-2.5 only). Every field in both rows is enabled only when the loaded workflow actually has it — see Field highlight color below (one exception: Wan2.2's Text-to-Video variant doesn't expose Noise Seed at all, so it alone leaves that field disabled)
- **Asset / Project subtabs** (sidebar, v0.5.5) — **Asset** browses generated videos through three groups: **Video Assets** (a manually-curated keeper group you organize yourself, on your own schedule), **Video Temp** (every plan run's output lands here automatically regardless of whether the plan itself was saved — a **Clear Video Temp** button in the Gallery tab's detail panel empties it in one click), and **All Video Assets** (the union of both); selecting a video shows it in the center panel's left preview and lets you tag/memo it or jump straight to the full Gallery tab. **Project** lists every saved plan file (thumbnail, block count, last updated) — click one to load it into the Plan editor, or delete it with the × button; either sidebar panel collapses back down when its own tab is clicked again
- **Two center previews** (v0.5.5) — the left preview shows either the video currently selected in the Asset subtab or whatever's dropped/picked in the **Video Source** panel to its left (**Clear** resets it to empty); the right preview always shows the most recently generated clip. The Frame/GIF tools act on whichever preview was touched most recently
- **First Frame / Last Frame are both optional** — leaving First Image empty runs the workflow text-only (the node is simply left unconnected — a "bypass"); workflows that don't even include a LoadImage node for First Frame are supported out of the box (Wan2.2's Text-to-Video graph has neither slot at all), and a LoadImage node is only injected into the graph on the fly if an image is actually supplied
- **Semantic node lookup, not hardcoded IDs** (generalized in v0.5.4) — detects which of the three families is loaded from its subgraph's internal node types (or, for Wan2.2, the subgraph's own name — it has no distinctive internal node type), then locates its Resolution Selector and LoadImage node(s) by the subgraph's *public input label* (`prompt`, `duration`, `width`, `first_frame`, `last_frame`) rather than a fixed slot index — so it keeps working even though the three families expose those inputs under different internal names; a workflow no longer needs to match any bundled reference file's exact node IDs, and no fallback test workflow is auto-loaded on tab open
- **Field highlight color** — Prompt / Duration / First Image / Last Image / Aspect Ratio / Megapixels / Multiple labels turn the same highlight color as the GenerateUI Model tab (shared setting, customizable in the Settings tab — see below) when the loaded workflow actually exposes that field; e.g. a Wan2.2 workflow (no Resolution Selector node) leaves Aspect Ratio / Megapixels / Multiple unhighlighted since those controls are disabled
- **Field highlight color** — Prompt / Duration / First Image / Last Image / Aspect Ratio / Megapixels / Multiple / Noise Seed / Width / Height / Turbo Mode / Strength / Steps / Prompt Enhance labels turn the same highlight color as the GenerateUI Model tab (shared setting, customizable in the Settings tab — see below) when the loaded workflow actually exposes that field; e.g. a Wan2.2 workflow (no Resolution Selector node) leaves Aspect Ratio / Megapixels / Multiple unhighlighted while Width / Height light up instead
- **Load in Video** (Workflow tab) — load any workflow containing a MiniMax H3 Image-to-Video node, an LTX-2.5 Text/Image/First&Last-Frame-to-Video node, or a Wan2.2 Text-to-Video node straight into this tab from the Workflow tab's side-panel toolbar (next to Load in GenerateUI) — starts a fresh single-block plan seeded from the workflow's own current values; unsupported workflows show an error toast instead of loading
- **Frame tab** (right panel) — captures the active preview's current playback position as a still frame: play/seek to the position you want, click **Capture Frame** (client-side canvas, no server round-trip), then **Save to Output** to write it as a PNG into ComfyUI's own Output folder (auto-numbered, same pattern as other generated images)
- **GIF tab** (right panel) — converts the active preview to an animated GIF; set Start/End (seconds), FPS, and an optional Max Width, then **Convert to GIF** — the server decodes the video (PyAV) and encodes an animated GIF (Pillow), both dependencies ComfyUI itself already requires, so no ffmpeg binary or extra install is needed; the result is saved into ComfyUI's Output folder and previewed inline
+2 -2
View File
@@ -255,8 +255,8 @@ async def handle_import(request: web.Request) -> web.Response:
# Full-backup (ZIP) export/import: unlike the flat _DATA_FILES JSON bundle above, this
# covers the whole DATA_DIR — directory-shaped data (ai_skills/, lab_plan/, style/) and
# the SQLite tagger.db that the JSON bundle can't represent. Excludes transient/cache
# covers the whole DATA_DIR — directory-shaped data (ai_skills/, lab_plan/, video_plan/,
# style/) and the SQLite tagger.db that the JSON bundle can't represent. Excludes transient/cache
# dirs, and wildcard/ specifically because it's typically a symlink into a *different*
# custom_node's folder (comfyui-impact-pack) rather than this plugin's own data.
_FULL_BACKUP_EXCLUDE_NAMES = {"gmic_temp", "thumb_cache", "wildcard"}
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-workflow-studio"
description = "A comprehensive workflow, asset management, and generation UI plugin for ComfyUI. Manage workflows, models, images, and prompts; batch generation and Image Feeder in the GenerateUI tab; library side panel with canvas drag & drop and AI tools."
version = "0.5.6"
version = "0.5.7"
license = { file = "LICENSE" }
requires-python = ">= 3.10"
dependencies = ["jinja2"]
+45 -20
View File
@@ -43,19 +43,6 @@
font-size: 13px;
}
.wfm-video-resolution-row {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
align-items: end;
}
.wfm-video-seed-randomize-wrap {
display: flex;
align-items: center;
padding-bottom: 6px;
}
/* ── Plan/Asset/Edit サブタブナビ(Lab/Galleryと同型) ── */
.wfm-video-subtab-nav {
display: flex;
@@ -144,26 +131,65 @@
.wfm-video-plan-basesettings {
display: grid;
grid-template-columns: repeat(3, 160px);
grid-template-columns: repeat(5, 150px);
gap: 10px;
}
.wfm-video-plan-basesettings label {
/* ── Plan: 2行目の追加設定(Width/Height/Turbo Mode/Strength/Steps/Prompt Enhance)。
basesettingsと同じ見た目だが、ワークフローによって対応する項目が変わる可変集合の
ため別クラスに分けている ── */
.wfm-video-plan-extrasettings {
display: grid;
grid-template-columns: repeat(6, 130px);
gap: 10px;
}
.wfm-video-plan-basesettings label,
.wfm-video-plan-extrasettings label {
display: block;
font-size: 12px;
color: var(--wfm-text-secondary);
margin-bottom: 4px;
}
/* タイムラインの下: ブロックエディタ(左、横並びの4カラム) + Run/Planタブ(右) */
/* Noise Seed欄: 数値入力とRandomizeチェックボックスを1セル内で横並びにする */
.wfm-video-seed-inline {
display: flex;
gap: 6px;
align-items: center;
}
.wfm-video-seed-inline .wfm-input { flex: 1; min-width: 0; }
.wfm-video-seed-randomize-inline {
display: flex;
align-items: center;
gap: 3px;
font-size: 11px;
white-space: nowrap;
margin-bottom: 0;
}
/* Turbo Mode / Prompt Enhance欄: ラベル行の下にチェックボックスを1つだけ置く
(他のnumber/select欄と縦位置を揃えるため、input要素の高さを合わせる) */
.wfm-video-checkbox-inline {
display: flex;
align-items: center;
gap: 4px;
height: 30px;
font-size: 12px;
margin-bottom: 0;
}
/* タイムラインの下: ブロックエディタ(左、横並びの3カラム) + Run/Planタブ(右) */
.wfm-video-plan-main-row {
display: flex;
gap: 16px;
align-items: flex-start;
}
/* ── Plan: ブロックエディタ(選択中ブロックのFirst/Last Image・Prompt・Duration。
中央の広いエリアに配置されるため横並びの4カラムで表示する) ── */
/* ── Plan: ブロックエディタ(選択中ブロックのFirst/Last Image・Prompt。Durationはtopbarの
basesettings行に移動済み。中央の広いエリアに配置されるため横並びの3カラムで表示する) ── */
.wfm-video-block-editor {
flex: 1;
min-width: 0;
@@ -179,8 +205,7 @@
}
.wfm-video-block-first-col,
.wfm-video-block-last-col,
.wfm-video-block-duration-col {
.wfm-video-block-last-col {
width: 190px;
flex: none;
display: flex;
+15 -15
View File
@@ -913,7 +913,7 @@ const LANGUAGES = {
helpSettings6: "Default workflow setting",
helpSettings7: "Eagle integration URL and auto-save toggle",
helpSettings8: "Data Management: export core settings, metadata, and prompts to a JSON file, or import to restore. After importing, restart ComfyUI.",
helpSettings15: "Full Backup (ZIP): unlike the JSON export above, also includes folder-based data (AI Skills, Lab Plans, Style presets) and the Tagger database — everything the JSON export can't represent. Restoring overwrites existing files; restart ComfyUI afterward.",
helpSettings15: "Full Backup (ZIP): unlike the JSON export above, also includes folder-based data (AI Skills, Lab Plans, Video Plans, Style presets) and the Tagger database — everything the JSON export can't represent. Restoring overwrites existing files; restart ComfyUI afterward.",
helpSettings16: "Two opt-in checkboxes above the Full Backup buttons additionally include ComfyUI's default workflows folder and the Impact Pack's wildcard folder in the export — both export-only, never restored automatically; copy the ZIP's _external/ folder back by hand if you want them.",
helpSettings9: "All sections are collapsible accordion panels",
helpSettings10: "Wildcard Integration: link WFS wildcard dir to ComfyUI-Impact-Pack wildcards (directory junction on Windows / symlink on other OS); existing files migrated automatically",
@@ -1230,7 +1230,7 @@ const LANGUAGES = {
importError: "Import failed",
exportFullBackup: "Full Backup (ZIP)",
importFullBackup: "Restore Full Backup (ZIP)",
fullBackupHint: "Full Backup (ZIP) additionally includes folder-based data (AI Skills, Lab Plans, Style presets) and the Tagger database — everything the JSON export above can't represent. Restoring overwrites existing files; restart ComfyUI afterward.",
fullBackupHint: "Full Backup (ZIP) additionally includes folder-based data (AI Skills, Lab Plans, Video Plans, Style presets) and the Tagger database — everything the JSON export above can't represent. Restoring overwrites existing files; restart ComfyUI afterward.",
fullBackupFilesUnit: "files",
fullBackupIncludeWorkflows: "Include default workflows folder (user/default/workflows)",
fullBackupIncludeWildcard: "Include Impact Pack wildcard folder (if present)",
@@ -1376,8 +1376,8 @@ const LANGUAGES = {
videoProjectLoadListFailed: "Failed to load plan list",
helpVideoTitle: "Video Tab",
helpVideoDesc: "A dedicated video generation tab for MiniMax H3 (Image to Video), LTX-2.5 (Text / Image / First & Last Frame to Video), and Wan2.2 (Text to Video) workflows, independent of the GenerateUI tab. The center panel's Plan / Edit subtabs handle batch generation and (future) editing; the sidebar's Asset / Project subtabs handle browsing generated videos and saved plans.",
helpVideo1: "Plan subtab: set Aspect Ratio / Megapixels / Multiple as this plan's base settings, then split the timeline into blocks with the + Split / + Block / Delete buttons. Each block has its own Prompt, Duration (seconds), and First/Last Image — First Image can be None, an explicit image, or \"use previous block's last frame\" (an explicit Last Image on the previous block always wins over extracting one from its generated video). Click Run to generate every block in order; Pause/Cancel work mid-run.",
helpVideo2: "A plan with a single block behaves exactly like the old one-shot form. Model selection (UNet / CLIP / VAE / Audio VAE) is fixed to the loaded workflow's defaults. For workflows with no ResolutionSelector node (e.g. Wan2.2), the workflow's own resolution is used as-is and the Aspect Ratio / Megapixels / Multiple fields are disabled.",
helpVideo1: "Plan subtab: the topbar's settings row holds Aspect Ratio / Megapixels / Multiple / Duration (seconds) / Noise Seed as this plan's base settings — Duration always reflects the currently selected block (each block keeps its own value), the rest are plan-wide. A second row below adds Width / Height / Turbo Mode / Strength / Steps / Prompt Enhance, each enabled only for workflows that actually support it (see helpVideo2). Split the timeline into blocks with the + Split / + Block / Delete buttons — each block has its own Prompt, Duration, and First/Last Image — First Image can be None, an explicit image, or \"use previous block's last frame\" (an explicit Last Image on the previous block always wins over extracting one from its generated video). Click Run to generate every block in order; Pause/Cancel work mid-run.",
helpVideo2: "A plan with a single block behaves exactly like the old one-shot form. Model selection (UNet / CLIP / VAE / Audio VAE) is fixed to the loaded workflow's defaults. For workflows with no ResolutionSelector node (e.g. Wan2.2, LTX-2.5 First & Last Frame to Video), the Aspect Ratio / Megapixels / Multiple fields are disabled and the workflow's own Width / Height become directly editable instead. Turbo Mode / Strength / Steps only apply to MiniMax H3's turbo LoRA, and Prompt Enhance only to LTX-2.5 — both stay disabled for other model families. Noise Seed is disabled for the one workflow that doesn't expose it: Wan2.2 Text-to-Video.",
helpVideo3: "Use the \"Load in Video\" button in the Workflow tab's detail modal to load a workflow containing a MiniMax H3 Image-to-Video node, an LTX-2.5 Text/Image/First&Last-Frame-to-Video node, or a Wan2.2 Text-to-Video node — this starts a fresh single-block plan seeded from the workflow's own current values. Unsupported workflows show an error instead.",
helpVideo4: "Generated videos (mp4) automatically appear in the Asset subtab's Video Temp group, and can also be browsed and played back in the Gallery tab. Organizing keepers into Video Assets is entirely up to you, on your own schedule.",
helpVideo5: "The center panel shows two previews: the left one shows either the video you select in the Asset subtab or whatever you drop/pick in the Video Source panel on its left (Clear resets it to empty), letting you use the Frame/GIF tools without running the loaded video workflow first; the right one always shows the most recently generated clip.",
@@ -1385,7 +1385,7 @@ const LANGUAGES = {
helpVideo7: "GIF tab (right panel): set Start/End (seconds), FPS, and an optional Max Width, then Convert to GIF — the server decodes the video and encodes an animated GIF into ComfyUI's output folder.",
helpVideo8: "Chaining: setting a block's First Image to \"use previous block's last frame\" continues smoothly from the previous clip — if that previous block has its own explicit Last Image, that image is used directly; otherwise the actual last frame of its generated video is extracted automatically.",
helpVideo9: "Project tab (sidebar, next to Asset): browse every saved plan file (thumbnail, block count, last updated), click one to load it into the Plan editor, or delete it with the × button; clicking the same tab again collapses the panel.",
helpVideo10: "Highlight color: the Prompt / Duration / First Image / Last Image / Aspect Ratio / Megapixels / Multiple labels turn the same highlight color as the GenerateUI Model tab (customizable in the Settings tab) when the loaded workflow actually supports that field — e.g. for a Wan2.2 workflow (no ResolutionSelector node), the Aspect Ratio / Megapixels / Multiple labels stay unhighlighted since those fields are disabled.",
helpVideo10: "Highlight color: the Prompt / Duration / First Image / Last Image / Aspect Ratio / Megapixels / Multiple / Noise Seed / Width / Height / Turbo Mode / Strength / Steps / Prompt Enhance labels turn the same highlight color as the GenerateUI Model tab (customizable in the Settings tab) when the loaded workflow actually supports that field — e.g. for a Wan2.2 workflow (no ResolutionSelector node), the Aspect Ratio / Megapixels / Multiple labels stay unhighlighted while Width / Height light up instead.",
},
ja: {
@@ -2295,7 +2295,7 @@ const LANGUAGES = {
helpSettings6: "デフォルトワークフローの設定・解除",
helpSettings7: "Eagle連携URL、自動保存の有効/無効",
helpSettings8: "データ管理:設定・メタデータ・プロンプトなど主要データをJSONにエクスポート、またはインポートして復元。インポート後はComfyUIを再起動してください。",
helpSettings15: "フルバックアップ (ZIP):上記のJSONエクスポートと異なり、フォルダ形式のデータ(AI Skills、Lab Plan、Styleプリセット)とTaggerデータベースも含みます。復元すると既存ファイルは上書きされます。復元後はComfyUIを再起動してください。",
helpSettings15: "フルバックアップ (ZIP):上記のJSONエクスポートと異なり、フォルダ形式のデータ(AI Skills、Lab Plan、Video Plan、Styleプリセット)とTaggerデータベースも含みます。復元すると既存ファイルは上書きされます。復元後はComfyUIを再起動してください。",
helpSettings16: "フルバックアップのボタン上にある2つのチェックボックスで、デフォルトワークフローフォルダーとImpact Packのwildcardフォルダーもエクスポートに含められます。どちらもエクスポート専用で自動復元はされません。必要な場合はZIP内の_external/フォルダから手動でコピーしてください。",
helpSettings9: "各セクションはアコーディオン式で折りたたみ可能",
helpSettings10: "Wildcard Integration:WFSのワイルドカードディレクトリをComfyUI-Impact-Packのwildcardsディレクトリへリンク(Windowsはジャンクション、他OSはシンボリックリンク)。既存ファイルは自動で移行されます",
@@ -2610,7 +2610,7 @@ const LANGUAGES = {
importError: "インポート失敗",
exportFullBackup: "フルバックアップ (ZIP)",
importFullBackup: "フルバックアップを復元 (ZIP)",
fullBackupHint: "フルバックアップ(ZIP)は上記のJSONエクスポートでは表現できないフォルダ形式のデータ(AI Skills、Lab Plan、Styleプリセット)とTaggerデータベースも含みます。復元すると既存ファイルは上書きされます。復元後はComfyUIを再起動してください。",
fullBackupHint: "フルバックアップ(ZIP)は上記のJSONエクスポートでは表現できないフォルダ形式のデータ(AI Skills、Lab Plan、Video Plan、Styleプリセット)とTaggerデータベースも含みます。復元すると既存ファイルは上書きされます。復元後はComfyUIを再起動してください。",
fullBackupFilesUnit: "件",
fullBackupIncludeWorkflows: "デフォルトワークフローフォルダーを含める (user/default/workflows)",
fullBackupIncludeWildcard: "Impact Packのwildcardフォルダーを含める(存在する場合)",
@@ -2756,8 +2756,8 @@ const LANGUAGES = {
videoProjectLoadListFailed: "Plan一覧の読み込みに失敗しました",
helpVideoTitle: "Video タブ",
helpVideoDesc: "MiniMax H3 (Image to Video)、LTX-2.5 (Text / Image / First & Last Frame to Video)、Wan2.2 (Text to Video) ワークフロー対応の動画生成タブ。GenerateUIタブとは独立して動作します。中央パネルのPlan/Editサブタブがバッチ生成と(将来の)編集を、左サイドバーのAsset/Projectサブタブが生成済み動画の閲覧と保存済みPlanの一覧を扱います。",
helpVideo1: "Planサブタブ: Aspect Ratio/Megapixels/MultipleをこのPlanの基本設定として指定し、「+ Split」「+ Block」「Delete」ボタンでタイムラインをブロックに分割します。各ブロックは独自のPrompt・Duration(秒)・First/Last Imageを持ちます(First Imageは「なし」「画像を指定」「前ブロックの最終フレームを使用」から選択可能。前ブロックに明示的なLast Imageが設定されていれば、フレーム抽出よりそちらが優先されます)。Runを押すと全ブロックを順番に生成します。実行中もPause/Cancelが使えます。",
helpVideo2: "ブロックが1個だけのPlanは、以前の単発生成フォームと同じ動作になります。モデル選択(UNet/CLIP/VAE/Audio VAE)は読み込んだワークフローの既定値に固定されます。ResolutionSelectorノードを持たないワークフロー(Wan2.2など)はワークフロー自体の解像度がそのまま使われ、Aspect Ratio/Megapixels/Multiple欄は無効化されます。",
helpVideo1: "Planサブタブ: 上部の設定行にAspect Ratio/Megapixels/Multiple/Duration(秒)/Noise SeedがこのPlanの基本設定として並びます——Durationは常に現在選択中のブロックの値を表示・編集します(各ブロックが独自の値を持つ)が、それ以外はPlan全体で共通の値です。その下の2行目にはWidth/Height/Turbo Mode/Strength/Steps/Prompt Enhanceが並び、読み込んだワークフローが実際に対応する項目だけ入力可能になります(詳細はhelpVideo2)。「+ Split」「+ Block」「Delete」ボタンでタイムラインをブロックに分割すると、各ブロックは独自のPrompt・Duration・First/Last Imageを持ちます(First Imageは「なし」「画像を指定」「前ブロックの最終フレームを使用」から選択可能。前ブロックに明示的なLast Imageが設定されていれば、フレーム抽出よりそちらが優先されます)。Runを押すと全ブロックを順番に生成します。実行中もPause/Cancelが使えます。",
helpVideo2: "ブロックが1個だけのPlanは、以前の単発生成フォームと同じ動作になります。モデル選択(UNet/CLIP/VAE/Audio VAE)は読み込んだワークフローの既定値に固定されます。ResolutionSelectorノードを持たないワークフロー(Wan2.2、LTX-2.5のFirst & Last Frame to Videoなど)はAspect Ratio/Megapixels/Multiple欄が無効化される代わりに、ワークフロー自体のWidth/Heightを直接編集できるようになります。Turbo Mode/Strength/StepsはMiniMax H3のturbo LoRA専用、Prompt EnhanceはLTX-2.5専用で、他のモデルファミリーでは無効のままです。Noise SeedはWan2.2のText to Videoのみ公開入力を持たないため無効化されます。",
helpVideo3: "Workflowタブの詳細モーダルにある「Videoに読み込み」ボタンから、MiniMax H3のImage to Videoノード、LTX-2.5のText/Image/First&Last-Frame to Videoノード、またはWan2.2のText to Videoノードを含むワークフローを読み込めます。この操作でワークフローの現在値を反映したブロック1個の新規Planが作成されます。対応していないワークフローはエラー表示になります。",
helpVideo4: "生成した動画(mp4)はAssetサブタブのVideo Tempグループに自動的に反映されるほか、Galleryタブでも閲覧・再生できます。残したい動画をVideo Assetsへ整理するタイミングはユーザー任意です。",
helpVideo5: "中央パネルには2つのプレビューがあります。左側はAssetサブタブで選択した動画、または左隣の「Video Source」パネルにドロップ/選択した任意のローカル動画を表示し(Clearでリセット)、読み込んだワークフローを実行せずにFrame/GIF機能を使えます。右側は常に直近で生成されたクリップを表示します。",
@@ -2765,7 +2765,7 @@ const LANGUAGES = {
helpVideo7: "GIFタブ(右パネル): Start/End(秒)・FPS・Max Width(任意)を指定して「Convert to GIF」を押すと、サーバー側で動画をデコードしアニメーションGIFとしてComfyUIのOutputフォルダに保存します。",
helpVideo8: "チェイン機能: ブロックのFirst Imageを「前ブロックの最終フレームを使用」に設定すると、前のクリップから連続した映像になります。前ブロックに明示的なLast Imageが設定されていればそれがそのまま使われ、無ければ生成された動画から実際の最終フレームが自動抽出されます。",
helpVideo9: "Projectタブ(左サイドバー、Assetの隣): 保存済みの全Planファイル(サムネイル・ブロック数・更新日時)を一覧表示し、クリックでPlanエディタへ読み込み、×ボタンで削除できます。同じタブをもう一度押すとパネルを閉じます。",
helpVideo10: "ハイライト表示: 読み込んだワークフローが実際にサポートしているフィールドに応じて、Prompt/Duration/First Image/Last Image/Aspect Ratio/Megapixels/Multipleのラベルが、GenerateUI ModelタブのハイライトとSettingsタブで共通設定できる色に変わります。例えばWan2.2ワークフロー(ResolutionSelectorノードが無い)ではAspect Ratio/Megapixels/Multipleが無効化されるため、それらのラベルはハイライトされません。",
helpVideo10: "ハイライト表示: 読み込んだワークフローが実際にサポートしているフィールドに応じて、Prompt/Duration/First Image/Last Image/Aspect Ratio/Megapixels/Multiple/Noise Seed/Width/Height/Turbo Mode/Strength/Steps/Prompt Enhanceのラベルが、GenerateUI ModelタブのハイライトとSettingsタブで共通設定できる色に変わります。例えばWan2.2ワークフロー(ResolutionSelectorノードが無い)ではAspect Ratio/Megapixels/Multipleはハイライトされない代わりに、Width/Heightがハイライトされます。",
},
zh: {
@@ -3675,7 +3675,7 @@ const LANGUAGES = {
helpSettings6: "默认工作流设置/取消",
helpSettings7: "Eagle集成URL、自动保存开关",
helpSettings8: "数据管理:将设置、元数据、提示词等主要数据导出为JSON文件,或导入以恢复。导入后请重启ComfyUI。",
helpSettings15: "完整备份 (ZIP):与上方的JSON导出不同,还包含文件夹型数据(AI Skills、Lab Plan、Style预设)以及Tagger数据库。恢复会覆盖现有文件,恢复后请重启ComfyUI。",
helpSettings15: "完整备份 (ZIP):与上方的JSON导出不同,还包含文件夹型数据(AI Skills、Lab Plan、Video Plan、Style预设)以及Tagger数据库。恢复会覆盖现有文件,恢复后请重启ComfyUI。",
helpSettings16: "完整备份按钮上方的两个复选框可将ComfyUI默认工作流文件夹和Impact Pack的wildcard文件夹一并导出。两者均仅用于导出,不会自动恢复。如需要,请从ZIP中的_external/文件夹手动复制回去。",
helpSettings9: "各部分可折叠展开",
helpSettings10: "Wildcard Integration:将WFS通配符目录链接到ComfyUI-Impact-Pack的wildcards目录(Windows为目录联结,其他OS为符号链接);现有文件自动迁移",
@@ -3991,7 +3991,7 @@ const LANGUAGES = {
importError: "导入失败",
exportFullBackup: "完整备份 (ZIP)",
importFullBackup: "恢复完整备份 (ZIP)",
fullBackupHint: "完整备份(ZIP)还包含上方JSON导出无法表示的文件夹型数据(AI Skills、Lab Plan、Style预设)以及Tagger数据库。恢复会覆盖现有文件,恢复后请重启ComfyUI。",
fullBackupHint: "完整备份(ZIP)还包含上方JSON导出无法表示的文件夹型数据(AI Skills、Lab Plan、Video Plan、Style预设)以及Tagger数据库。恢复会覆盖现有文件,恢复后请重启ComfyUI。",
fullBackupFilesUnit: "个文件",
fullBackupIncludeWorkflows: "包含默认工作流文件夹 (user/default/workflows)",
fullBackupIncludeWildcard: "包含Impact Pack的wildcard文件夹(如存在)",
@@ -4137,8 +4137,8 @@ const LANGUAGES = {
videoProjectLoadListFailed: "Plan 列表加载失败",
helpVideoTitle: "Video 标签页",
helpVideoDesc: "支持 MiniMax H3(Image to Video)、LTX-2.5(Text / Image / First & Last Frame to Video)、Wan2.2(Text to Video)工作流的视频生成标签页,独立于 GenerateUI 标签页运行。中央面板的 Plan/Edit 子标签负责批量生成和(未来的)编辑;侧边栏的 Asset/Project 子标签负责浏览已生成的视频和已保存的 Plan。",
helpVideo1: "Plan 子标签:将 Aspect Ratio/Megapixels/Multiple 设置为该 Plan 的基础设置,然后用「+ Split」「+ Block」「Delete」按钮把时间线分割成多个区块。每个区块都有自己的 Prompt、Duration(秒)以及 First/Last Image(First Image 可选择“无”、“指定图片”或“使用前一个区块的最后一帧”——若前一个区块已明确设置了 Last Image,则优先使用该图片而非提取帧)。点击 Run 会按顺序生成所有区块,运行中也可以 Pause/Cancel。",
helpVideo2: "只有一个区块的 Plan 与旧版单次生成表单效果完全相同。模型选择(UNet/CLIP/VAE/Audio VAE)固定为所加载工作流的默认值。没有 ResolutionSelector 节点的工作流(如 Wan2.2)会直接使用该工作流自身的分辨率,Aspect Ratio/Megapixels/Multiple 字段将被禁用。",
helpVideo1: "Plan 子标签:顶部设置行包含 Aspect Ratio/Megapixels/Multiple/Duration(秒)/Noise Seed,作为该 Plan 的基础设置——Duration 始终显示并可编辑当前选中区块的值(每个区块保留自己的值),其余字段则是整个 Plan 共用的。下方第二行是 Width/Height/Turbo Mode/Strength/Steps/Prompt Enhance,仅当所加载的工作流实际支持该项时才可输入(详见 helpVideo2)。用「+ Split」「+ Block」「Delete」按钮把时间线分割成多个区块后,每个区块都有自己的 Prompt、Duration 以及 First/Last Image(First Image 可选择“无”、“指定图片”或“使用前一个区块的最后一帧”——若前一个区块已明确设置了 Last Image,则优先使用该图片而非提取帧)。点击 Run 会按顺序生成所有区块,运行中也可以 Pause/Cancel。",
helpVideo2: "只有一个区块的 Plan 与旧版单次生成表单效果完全相同。模型选择(UNet/CLIP/VAE/Audio VAE)固定为所加载工作流的默认值。没有 ResolutionSelector 节点的工作流(如 Wan2.2、LTX-2.5 的 First & Last Frame to Video)会禁用 Aspect Ratio/Megapixels/Multiple 字段,改为可以直接编辑工作流自身的 Width/Height。Turbo Mode/Strength/Steps 仅适用于 MiniMax H3 的 turbo LoRA,Prompt Enhance 仅适用于 LTX-2.5——其他模型系列中这些字段保持禁用。Noise Seed 仅在 Wan2.2 的 Text to Video 中会被禁用,因为该变体未公开此输入。",
helpVideo3: "在 Workflow 标签页的详情弹窗中使用「加载到Video」按钮,可以加载包含 MiniMax H3 的 Image to Video 节点、LTX-2.5 的 Text/Image/First&Last-Frame to Video 节点、或 Wan2.2 的 Text to Video 节点的工作流——此操作会创建一个仅含一个区块、并以该工作流当前值为初始值的新 Plan。不受支持的工作流会显示错误提示。",
helpVideo4: "生成的视频(mp4)会自动出现在 Asset 子标签的 Video Temp 组中,也可以在 Gallery 标签页中浏览和播放。是否整理到 Video Assets,由您自行决定时机。",
helpVideo5: "中间面板有两个预览区:左侧显示您在 Asset 子标签中选择的视频,或拖放/选择到左边「Video Source」面板中的任意本地视频(点击 Clear 可重置),无需先运行已加载的视频工作流即可使用 Frame/GIF 工具;右侧始终显示最近一次生成的片段。",
@@ -4146,7 +4146,7 @@ const LANGUAGES = {
helpVideo7: "GIF标签页(右侧面板):设置Start/End(秒)、FPS和可选的Max Width,点击「Convert to GIF」后,服务器会解码视频并将动画GIF保存到ComfyUI的输出文件夹。",
helpVideo8: "链接功能:将某个区块的 First Image 设置为“使用前一个区块的最后一帧”,即可与上一个片段流畅衔接——如果前一个区块已明确设置了 Last Image,将直接使用该图片;否则会自动从其生成的视频中提取实际的最后一帧。",
helpVideo9: "Project标签页(左侧边栏,与Asset并列):浏览所有已保存的 Plan 文件(缩略图、区块数、最后更新时间),点击即可加载到 Plan 编辑器,或用 × 按钮删除;再次点击同一标签会收起面板。",
helpVideo10: "高亮颜色:当所加载的工作流实际支持该字段时,Prompt / Duration / First Image / Last Image / Aspect Ratio / Megapixels / Multiple 标签会变为与 GenerateUI Model 标签页相同的高亮颜色(可在 Settings 标签页自定义)——例如 Wan2.2 工作流(没有 ResolutionSelector 节点)中,Aspect Ratio / Megapixels / Multiple 字段被禁用,因此这些标签不会高亮。",
helpVideo10: "高亮颜色:当所加载的工作流实际支持该字段时,Prompt / Duration / First Image / Last Image / Aspect Ratio / Megapixels / Multiple / Noise Seed / Width / Height / Turbo Mode / Strength / Steps / Prompt Enhance 标签会变为与 GenerateUI Model 标签页相同的高亮颜色(可在 Settings 标签页自定义)——例如 Wan2.2 工作流(没有 ResolutionSelector 节点)中,Aspect Ratio / Megapixels / Multiple 不会高亮,取而代之的是 Width / Height 会高亮。",
},
};
+113 -10
View File
@@ -43,12 +43,21 @@ function _emptyBlock(colorIdx) {
};
}
// width/height/turbo_mode/turbo_strength/turbo_steps/prompt_enhanceは、Aspect Ratio/
// Megapixels/Multipleと同様にPlan全体で共有する値(モデル・LoRA・サンプラー設定に近く、
// ブロックごとに変える性質のものではない)。ワークフローが対応する項目を持たない場合は
// UI側で無効化・非ハイライトになるだけで、この既定値はそのまま保持される。
function _emptyPlanState() {
return {
planFilename: null,
note: "",
workflowFilename: null,
base_settings: { aspect_ratio: "", megapixels: 0.2, multiple: 32 },
base_settings: {
aspect_ratio: "", megapixels: 0.2, multiple: 32,
width: 1280, height: 720,
turbo_mode: false, turbo_strength: 1, turbo_steps: 8,
prompt_enhance: false,
},
seed_mode: "random",
seed_value: 0,
blocks: [_emptyBlock(0)],
@@ -155,19 +164,44 @@ const _FIELD_LABEL_IDS = [
"wfm-video-plan-aspect-ratio-label",
"wfm-video-plan-megapixels-label",
"wfm-video-plan-multiple-label",
"wfm-video-plan-seed-value-label",
"wfm-video-plan-width-label",
"wfm-video-plan-height-label",
"wfm-video-plan-turbo-mode-label",
"wfm-video-plan-turbo-strength-label",
"wfm-video-plan-turbo-steps-label",
"wfm-video-plan-prompt-enhance-label",
];
function _setFieldActive(id, active) {
document.getElementById(id)?.classList.toggle("wfm-model-label-active", !!active);
}
// active=falseの項目は入力欄自体も無効化する。ワークフローが対応しない値を編集させても
// 実際の生成には反映されない(width/heightはResolutionSelector経由の場合、instanceNode側の
// widgetを直接書いても実行時に上書きされる。他も対応する入力が無ければ書き込み先が無い)ため。
function _setFieldEnabled(inputId, active) {
const el = document.getElementById(inputId);
if (el) el.disabled = !active;
}
function _updateFieldHighlights() {
const nodes = _templateWorkflow ? locateVideoModelNodes(_templateWorkflow) : null;
if (!nodes) {
_FIELD_LABEL_IDS.forEach((id) => _setFieldActive(id, false));
["wfm-video-plan-width", "wfm-video-plan-height", "wfm-video-plan-turbo-mode",
"wfm-video-plan-turbo-strength", "wfm-video-plan-turbo-steps", "wfm-video-plan-prompt-enhance"]
.forEach((id) => _setFieldEnabled(id, false));
return;
}
const hasResolution = !!nodes.resolutionNode;
const hasDirectResolution = nodes.widthIdx !== -1 && nodes.heightIdx !== -1;
const hasNoiseSeed = nodes.noiseSeedIdx !== -1;
const hasTurboMode = nodes.turboModeIdx !== -1;
const hasTurboStrength = nodes.turboStrengthIdx !== -1;
const hasTurboSteps = nodes.turboStepsIdx !== -1;
const hasPromptEnhance = nodes.promptEnhanceIdx !== -1;
_setFieldActive("wfm-video-block-prompt-label", true);
_setFieldActive("wfm-video-block-duration-label", true);
_setFieldActive("wfm-video-block-first-label", nodes.firstFrameSlot !== -1);
@@ -175,6 +209,20 @@ function _updateFieldHighlights() {
_setFieldActive("wfm-video-plan-aspect-ratio-label", hasResolution);
_setFieldActive("wfm-video-plan-megapixels-label", hasResolution);
_setFieldActive("wfm-video-plan-multiple-label", hasResolution);
_setFieldActive("wfm-video-plan-seed-value-label", hasNoiseSeed);
_setFieldActive("wfm-video-plan-width-label", hasDirectResolution);
_setFieldActive("wfm-video-plan-height-label", hasDirectResolution);
_setFieldActive("wfm-video-plan-turbo-mode-label", hasTurboMode);
_setFieldActive("wfm-video-plan-turbo-strength-label", hasTurboStrength);
_setFieldActive("wfm-video-plan-turbo-steps-label", hasTurboSteps);
_setFieldActive("wfm-video-plan-prompt-enhance-label", hasPromptEnhance);
_setFieldEnabled("wfm-video-plan-width", hasDirectResolution);
_setFieldEnabled("wfm-video-plan-height", hasDirectResolution);
_setFieldEnabled("wfm-video-plan-turbo-mode", hasTurboMode);
_setFieldEnabled("wfm-video-plan-turbo-strength", hasTurboStrength);
_setFieldEnabled("wfm-video-plan-turbo-steps", hasTurboSteps);
_setFieldEnabled("wfm-video-plan-prompt-enhance", hasPromptEnhance);
}
function _frameFieldHtml(which, filename) {
@@ -217,17 +265,12 @@ function _blockEditorHtml(block, isFirstBlock) {
</div>
<div class="wfm-video-block-col wfm-video-block-prompt-col">
<label id="wfm-video-block-prompt-label">Prompt</label>
<textarea id="wfm-video-block-prompt" class="wfm-textarea" rows="8">${escapeHtml(block.prompt || "")}</textarea>
</div>
<div class="wfm-video-block-col wfm-video-block-duration-col">
<div class="wfm-video-block-color-row">
<span class="wfm-video-color-swatch" style="background:${escapeHtml(block.color)}"></span>
<span>color</span>
</div>
<label id="wfm-video-block-duration-label">Duration (seconds)</label>
<input type="number" id="wfm-video-block-duration" class="wfm-input" step="0.5" min="0.5" value="${block.duration}">
<label id="wfm-video-block-prompt-label">Prompt</label>
<textarea id="wfm-video-block-prompt" class="wfm-textarea" rows="8">${escapeHtml(block.prompt || "")}</textarea>
</div>
`;
}
@@ -302,14 +345,25 @@ function _renderBlockEditor() {
document.getElementById("wfm-video-block-last-clear")?.addEventListener("click", () => _clearBlockImage("last"));
document.getElementById("wfm-video-block-prompt")?.addEventListener("input", (e) => { block.prompt = e.target.value; });
// Durationの入力欄はtopbarのbasesettings行に固定配置されている(ブロックエディタの
// innerHTMLと違って再生成されない)ため、ここでは現在選択中ブロックの値を反映するだけ。
// change時のリスナーは_initDurationControlで一度だけ登録済み。
const durationEl = document.getElementById("wfm-video-block-duration");
if (durationEl) durationEl.value = block.duration;
_updateFieldHighlights();
}
function _initDurationControl() {
document.getElementById("wfm-video-block-duration")?.addEventListener("change", (e) => {
const block = _plan.blocks.find((b) => b.id === _selectedBlockId);
if (!block) return;
const v = Number(e.target.value);
block.duration = (isNaN(v) || v <= 0) ? 0.5 : v;
e.target.value = block.duration;
_renderTimeline();
});
_updateFieldHighlights();
}
// ============================================
@@ -326,15 +380,45 @@ function _initBaseSettings() {
document.getElementById("wfm-video-plan-multiple")?.addEventListener("change", (e) => {
_plan.base_settings.multiple = Number(e.target.value) || 32;
});
document.getElementById("wfm-video-plan-width")?.addEventListener("change", (e) => {
_plan.base_settings.width = Number(e.target.value) || 1280;
});
document.getElementById("wfm-video-plan-height")?.addEventListener("change", (e) => {
_plan.base_settings.height = Number(e.target.value) || 720;
});
document.getElementById("wfm-video-plan-turbo-mode")?.addEventListener("change", (e) => {
_plan.base_settings.turbo_mode = e.target.checked;
});
document.getElementById("wfm-video-plan-turbo-strength")?.addEventListener("change", (e) => {
_plan.base_settings.turbo_strength = Number(e.target.value) || 0;
});
document.getElementById("wfm-video-plan-turbo-steps")?.addEventListener("change", (e) => {
_plan.base_settings.turbo_steps = Number(e.target.value) || 1;
});
document.getElementById("wfm-video-plan-prompt-enhance")?.addEventListener("change", (e) => {
_plan.base_settings.prompt_enhance = e.target.checked;
});
}
function _applyBaseSettingsToUI() {
const aspectEl = document.getElementById("wfm-video-plan-aspect-ratio");
const mpEl = document.getElementById("wfm-video-plan-megapixels");
const multEl = document.getElementById("wfm-video-plan-multiple");
const widthEl = document.getElementById("wfm-video-plan-width");
const heightEl = document.getElementById("wfm-video-plan-height");
const turboModeEl = document.getElementById("wfm-video-plan-turbo-mode");
const turboStrengthEl = document.getElementById("wfm-video-plan-turbo-strength");
const turboStepsEl = document.getElementById("wfm-video-plan-turbo-steps");
const promptEnhanceEl = document.getElementById("wfm-video-plan-prompt-enhance");
if (aspectEl && _plan.base_settings.aspect_ratio) aspectEl.value = _plan.base_settings.aspect_ratio;
if (mpEl) mpEl.value = _plan.base_settings.megapixels;
if (multEl) multEl.value = _plan.base_settings.multiple;
if (widthEl) widthEl.value = _plan.base_settings.width;
if (heightEl) heightEl.value = _plan.base_settings.height;
if (turboModeEl) turboModeEl.checked = !!_plan.base_settings.turbo_mode;
if (turboStrengthEl) turboStrengthEl.value = _plan.base_settings.turbo_strength;
if (turboStepsEl) turboStepsEl.value = _plan.base_settings.turbo_steps;
if (promptEnhanceEl) promptEnhanceEl.checked = !!_plan.base_settings.prompt_enhance;
}
async function _populateAspectRatioOptions() {
@@ -383,6 +467,12 @@ export async function loadWorkflowIntoVideoEditor(workflow, filename) {
_plan.base_settings.aspect_ratio = defaults.aspectRatio || "";
if (defaults.megapixels != null) _plan.base_settings.megapixels = defaults.megapixels;
if (defaults.multiple != null) _plan.base_settings.multiple = defaults.multiple;
if (defaults.width != null) _plan.base_settings.width = defaults.width;
if (defaults.height != null) _plan.base_settings.height = defaults.height;
if (defaults.turboMode != null) _plan.base_settings.turbo_mode = defaults.turboMode;
if (defaults.turboStrength != null) _plan.base_settings.turbo_strength = defaults.turboStrength;
if (defaults.turboSteps != null) _plan.base_settings.turbo_steps = defaults.turboSteps;
if (defaults.promptEnhance != null) _plan.base_settings.prompt_enhance = defaults.promptEnhance;
const block = _plan.blocks[0];
block.prompt = defaults.prompt;
@@ -602,6 +692,12 @@ async function _runVideoPlanBatch() {
aspectRatio: _plan.base_settings.aspect_ratio,
megapixels: _plan.base_settings.megapixels,
multiple: _plan.base_settings.multiple,
width: _plan.base_settings.width,
height: _plan.base_settings.height,
turboMode: _plan.base_settings.turbo_mode,
turboStrength: _plan.base_settings.turbo_strength,
turboSteps: _plan.base_settings.turbo_steps,
promptEnhance: _plan.base_settings.prompt_enhance,
firstImageFilename,
lastImageFilename: block.last_image_filename || null,
});
@@ -831,6 +927,12 @@ function _applyPlanData(filename, data) {
aspect_ratio: data.base_settings?.aspect_ratio || "",
megapixels: data.base_settings?.megapixels ?? 0.2,
multiple: data.base_settings?.multiple ?? 32,
width: data.base_settings?.width ?? 1280,
height: data.base_settings?.height ?? 720,
turbo_mode: data.base_settings?.turbo_mode ?? false,
turbo_strength: data.base_settings?.turbo_strength ?? 1,
turbo_steps: data.base_settings?.turbo_steps ?? 8,
prompt_enhance: data.base_settings?.prompt_enhance ?? false,
};
_plan.seed_mode = data.seed_mode || "random";
_plan.seed_value = data.seed_value ?? 0;
@@ -964,6 +1066,7 @@ function _initRunPlanTabToggle() {
export function initVideoPlanTab() {
_initPlanDropZone();
_initBaseSettings();
_initDurationControl();
_populateAspectRatioOptions();
_initTimelineControls();
_initRunPlanTabToggle();
+65 -2
View File
@@ -37,6 +37,12 @@ function _findInputByLabel(node, label) {
return (node?.inputs || []).find((inp) => (inp.label || inp.name) === label) || null;
}
// noise_seedはLTX-2.5のText to Videoバリアントだけlabel="seed"を持つ(他は無label)ため、
// 意味的ラベルではなくname自体(全バリアントで"noise_seed"に統一)で検索する。
function _findInputByName(node, name) {
return (node?.inputs || []).find((inp) => inp.name === name) || null;
}
function _detectVideoSubgraph(workflow) {
if (!Array.isArray(workflow?.nodes) || !Array.isArray(workflow?.links)) return null;
const subgraphs = workflow.definitions?.subgraphs || [];
@@ -81,6 +87,22 @@ export function locateVideoModelNodes(workflow) {
const widthSlot = instanceNode.inputs.indexOf(widthInput);
// ワークフローにより有無・意味が異なる任意項目。見つからなければ全て-1を返し、
// 呼び出し側(UI)はその項目を無効化・非ハイライトにする。
const heightInput = _findInputByLabel(instanceNode, "height");
const noiseSeedInput = _findInputByName(instanceNode, "noise_seed");
// MiniMax H3は"turbo_mode"、Wan2.2は"enable_turbo_mode" — 同じ意味のトグルをUI上は
// 1つのフィールドとして兼用するため、どちらか見つかった方を使う。
const turboModeInput = _findInputByLabel(instanceNode, "turbo_mode") || _findInputByLabel(instanceNode, "enable_turbo_mode");
const turboStrengthInput = _findInputByLabel(instanceNode, "turbo_model_strength");
const turboStepsInput = _findInputByLabel(instanceNode, "turbo_steps");
const promptEnhanceInput = _findInputByLabel(instanceNode, "prompt_enhance");
const noiseSeedIdx = _widgetIndexOf(instanceNode, noiseSeedInput);
const turboModeIdx = _widgetIndexOf(instanceNode, turboModeInput);
const turboStrengthIdx = _widgetIndexOf(instanceNode, turboStrengthInput);
const turboStepsIdx = _widgetIndexOf(instanceNode, turboStepsInput);
const promptEnhanceIdx = _widgetIndexOf(instanceNode, promptEnhanceInput);
const findLinkedNode = (targetSlot) => {
if (targetSlot === -1) return null;
const link = workflow.links.find((l) => l[3] === instanceNode.id && l[4] === targetSlot);
@@ -108,9 +130,17 @@ export function locateVideoModelNodes(workflow) {
const rawLastLoadImageNode = findLinkedNode(lastFrameSlot);
const lastLoadImageNode = (rawLastLoadImageNode && rawLastLoadImageNode.type === "LoadImage") ? rawLastLoadImageNode : null;
// width/heightはResolutionSelectorがあればその出力に接続されており(widthSlotの
// link経由)、その場合は直接ウィジェット値を書き換えても実行時にリンク元の出力で
// 上書きされ意味がない。resolutionNodeがnullのワークフロー(LTX-2.5 First&Last-Frame,
// Wan2.2全種)でのみ、instanceNode自身のwidth/heightウィジェットを直接編集できる。
const widthIdx = resolutionNode ? -1 : _widgetIndexOf(instanceNode, widthInput);
const heightIdx = resolutionNode ? -1 : _widgetIndexOf(instanceNode, heightInput);
return {
family, sgDef, instanceNode, loadImageNode, lastLoadImageNode, resolutionNode,
firstFrameSlot, lastFrameSlot, promptIdx, durationIdx,
widthIdx, heightIdx, noiseSeedIdx, turboModeIdx, turboStrengthIdx, turboStepsIdx, promptEnhanceIdx,
};
}
@@ -118,7 +148,10 @@ export function locateVideoModelNodes(workflow) {
// (the Plan tab's first block, previously the single-shot form) can seed its
// fields from whatever the workflow file already had.
export function readTemplateDefaults(nodes) {
const { instanceNode, resolutionNode, loadImageNode, lastLoadImageNode, promptIdx, durationIdx } = nodes;
const {
instanceNode, resolutionNode, loadImageNode, lastLoadImageNode, promptIdx, durationIdx,
widthIdx, heightIdx, noiseSeedIdx, turboModeIdx, turboStrengthIdx, turboStepsIdx, promptEnhanceIdx,
} = nodes;
const arIdx = widgetIndex(resolutionNode, "aspect_ratio");
const mpIdx = widgetIndex(resolutionNode, "megapixels");
const multIdx = widgetIndex(resolutionNode, "multiple");
@@ -133,6 +166,21 @@ export function readTemplateDefaults(nodes) {
multiple: (resolutionNode && multIdx !== -1) ? resolutionNode.widgets_values[multIdx] : null,
firstImageFilename: (loadImageNode && fnIdx !== -1) ? loadImageNode.widgets_values[fnIdx] : null,
lastImageFilename: (lastLoadImageNode && lastFnIdx !== -1) ? lastLoadImageNode.widgets_values[lastFnIdx] : null,
// width/heightは resolutionNode がある場合は widthIdx/heightIdx が -1 になる
// (locateVideoModelNodes参照) ため、常にnullが返り直接入力欄は無効化される。
hasDirectResolution: widthIdx !== -1 && heightIdx !== -1,
width: widthIdx !== -1 ? instanceNode.widgets_values[widthIdx] : null,
height: heightIdx !== -1 ? instanceNode.widgets_values[heightIdx] : null,
hasNoiseSeed: noiseSeedIdx !== -1,
noiseSeed: noiseSeedIdx !== -1 ? instanceNode.widgets_values[noiseSeedIdx] : null,
hasTurboMode: turboModeIdx !== -1,
turboMode: turboModeIdx !== -1 ? instanceNode.widgets_values[turboModeIdx] : null,
hasTurboStrength: turboStrengthIdx !== -1,
turboStrength: turboStrengthIdx !== -1 ? instanceNode.widgets_values[turboStrengthIdx] : null,
hasTurboSteps: turboStepsIdx !== -1,
turboSteps: turboStepsIdx !== -1 ? instanceNode.widgets_values[turboStepsIdx] : null,
hasPromptEnhance: promptEnhanceIdx !== -1,
promptEnhance: promptEnhanceIdx !== -1 ? instanceNode.widgets_values[promptEnhanceIdx] : null,
};
}
@@ -182,7 +230,10 @@ export function injectFrameNode(clone, instanceNode, targetSlot, filename) {
// both unset keeps the slot disconnected (bypassed) exactly like the
// template's own clean state.
export function applyBlockToWorkflow(clone, nodes, params) {
const { instanceNode, resolutionNode, loadImageNode, lastLoadImageNode, promptIdx, durationIdx, firstFrameSlot, lastFrameSlot } = nodes;
const {
instanceNode, resolutionNode, loadImageNode, lastLoadImageNode, promptIdx, durationIdx, firstFrameSlot, lastFrameSlot,
widthIdx, heightIdx, turboModeIdx, turboStrengthIdx, turboStepsIdx, promptEnhanceIdx,
} = nodes;
instanceNode.widgets_values[promptIdx] = params.prompt || "";
instanceNode.widgets_values[durationIdx] = params.duration;
@@ -194,6 +245,18 @@ export function applyBlockToWorkflow(clone, nodes, params) {
if (mpIdx !== -1) resolutionNode.widgets_values[mpIdx] = params.megapixels;
if (multIdx !== -1) resolutionNode.widgets_values[multIdx] = params.multiple;
// widthIdx/heightIdxはresolutionNodeがあるワークフローでは-1固定(locateVideoModelNodes
// 参照)なので、そちらはaspect_ratio/megapixels/multiple経由の計算値のまま変更しない。
if (widthIdx !== -1 && params.width != null) instanceNode.widgets_values[widthIdx] = params.width;
if (heightIdx !== -1 && params.height != null) instanceNode.widgets_values[heightIdx] = params.height;
// noise_seedはここでは書かない — comfyUI.generate()がAPI変換後のワークフロー全体から
// "noise_seed"/"seed"キーを持つ全ノードを一括で上書きする(applySeedToWorkflow)ため、
// ここで書いてもその後必ず上書きされる。Plan全体のシード管理は引き続きそちら任せでよい。
if (turboModeIdx !== -1 && params.turboMode != null) instanceNode.widgets_values[turboModeIdx] = params.turboMode;
if (turboStrengthIdx !== -1 && params.turboStrength != null) instanceNode.widgets_values[turboStrengthIdx] = params.turboStrength;
if (turboStepsIdx !== -1 && params.turboSteps != null) instanceNode.widgets_values[turboStepsIdx] = params.turboSteps;
if (promptEnhanceIdx !== -1 && params.promptEnhance != null) instanceNode.widgets_values[promptEnhanceIdx] = params.promptEnhance;
if (params.firstImageFilename) {
if (loadImageNode) {
const fnIdx = widgetIndex(loadImageNode, "image");
+40 -13
View File
@@ -2093,8 +2093,8 @@
<p id="wfm-help-video-desc">A dedicated video generation tab for MiniMax H3 (Image to Video), LTX-2.5 (Text / Image / First & Last Frame to Video), and Wan2.2 (Text to Video) workflows, independent of the GenerateUI tab. The center panel's Plan / Edit subtabs handle batch generation and (future) editing; the sidebar's Asset / Project subtabs handle browsing generated videos and saved plans.</p>
<div class="wfm-help-card">
<ul>
<li id="wfm-help-video-1">Plan subtab: set Aspect Ratio / Megapixels / Multiple as this plan's base settings, then split the timeline into blocks with the + Split / + Block / Delete buttons. Each block has its own Prompt, Duration (seconds), and First/Last Image — First Image can be None, an explicit image, or "use previous block's last frame" (an explicit Last Image on the previous block always wins over extracting one from its generated video). Click Run to generate every block in order; Pause/Cancel work mid-run.</li>
<li id="wfm-help-video-2">A plan with a single block behaves exactly like the old one-shot form. Model selection (UNet / CLIP / VAE / Audio VAE) is fixed to the loaded workflow's defaults. For workflows with no ResolutionSelector node (e.g. Wan2.2), the workflow's own resolution is used as-is and the Aspect Ratio / Megapixels / Multiple fields are disabled.</li>
<li id="wfm-help-video-1">Plan subtab: the topbar's settings row holds Aspect Ratio / Megapixels / Multiple / Duration (seconds) / Noise Seed as this plan's base settings — Duration always reflects the currently selected block (each block keeps its own value), the rest are plan-wide. A second row below adds Width / Height / Turbo Mode / Strength / Steps / Prompt Enhance, each enabled only for workflows that actually support it (see helpVideo2). Split the timeline into blocks with the + Split / + Block / Delete buttons — each block has its own Prompt, Duration, and First/Last Image — First Image can be None, an explicit image, or "use previous block's last frame" (an explicit Last Image on the previous block always wins over extracting one from its generated video). Click Run to generate every block in order; Pause/Cancel work mid-run.</li>
<li id="wfm-help-video-2">A plan with a single block behaves exactly like the old one-shot form. Model selection (UNet / CLIP / VAE / Audio VAE) is fixed to the loaded workflow's defaults. For workflows with no ResolutionSelector node (e.g. Wan2.2, LTX-2.5 First & Last Frame to Video), the Aspect Ratio / Megapixels / Multiple fields are disabled and the workflow's own Width / Height become directly editable instead. Turbo Mode / Strength / Steps only apply to MiniMax H3's turbo LoRA, and Prompt Enhance only to LTX-2.5 — both stay disabled for other model families. Noise Seed is disabled for the one workflow that doesn't expose it: Wan2.2 Text-to-Video.</li>
<li id="wfm-help-video-3">Use the "Load in Video" button in the Workflow tab's detail modal to load a workflow containing a MiniMax H3 Image-to-Video node, an LTX-2.5 Text/Image/First&Last-Frame-to-Video node, or a Wan2.2 Text-to-Video node — this starts a fresh single-block plan seeded from the workflow's own current values. Unsupported workflows show an error instead.</li>
<li id="wfm-help-video-4">Generated videos (mp4) automatically appear in the Asset subtab's Video Temp group, and can also be browsed and played back in the Gallery tab. Organizing keepers into Video Assets is entirely up to you, on your own schedule.</li>
<li id="wfm-help-video-5">The center panel shows two previews: the left one shows either the video you select in the Asset subtab or whatever you drop/pick in the Video Source panel on its left (Clear resets it to empty), letting you use the Frame/GIF tools without running the loaded video workflow first; the right one always shows the most recently generated clip.</li>
@@ -2102,7 +2102,7 @@
<li id="wfm-help-video-7">GIF tab (right panel): set Start/End (seconds), FPS, and an optional Max Width, then Convert to GIF — the server decodes the video and encodes an animated GIF into ComfyUI's output folder.</li>
<li id="wfm-help-video-8">Chaining: setting a block's First Image to "use previous block's last frame" continues smoothly from the previous clip — if that previous block has its own explicit Last Image, that image is used directly; otherwise the actual last frame of its generated video is extracted automatically.</li>
<li id="wfm-help-video-9">Project tab (sidebar, next to Asset): browse every saved plan file (thumbnail, block count, last updated), click one to load it into the Plan editor, or delete it with the × button; clicking the same tab again collapses the panel.</li>
<li id="wfm-help-video-10">Highlight color: the Prompt / Duration / First Image / Last Image / Aspect Ratio / Megapixels / Multiple labels turn the same highlight color as the GenerateUI Model tab (customizable in the Settings tab) when the loaded workflow actually supports that field — e.g. for a Wan2.2 workflow (no ResolutionSelector node), the Aspect Ratio / Megapixels / Multiple labels stay unhighlighted since those fields are disabled.</li>
<li id="wfm-help-video-10">Highlight color: the Prompt / Duration / First Image / Last Image / Aspect Ratio / Megapixels / Multiple / Noise Seed / Width / Height / Turbo Mode / Strength / Steps / Prompt Enhance labels turn the same highlight color as the GenerateUI Model tab (customizable in the Settings tab) when the loaded workflow actually supports that field — e.g. for a Wan2.2 workflow (no ResolutionSelector node), the Aspect Ratio / Megapixels / Multiple labels stay unhighlighted while Width / Height light up instead.</li>
</ul>
</div>
<button class="wfm-help-jump-btn wfm-btn wfm-btn-sm" data-jump-tab="video">Go to Video Tab</button>
@@ -2775,6 +2775,43 @@
<label for="wfm-video-plan-multiple" id="wfm-video-plan-multiple-label">Multiple</label>
<input type="number" id="wfm-video-plan-multiple" class="wfm-input" step="8" min="8" value="32">
</div>
<div>
<label for="wfm-video-block-duration" id="wfm-video-block-duration-label">Duration (seconds)</label>
<input type="number" id="wfm-video-block-duration" class="wfm-input" step="0.5" min="0.5" value="2">
</div>
<div>
<label for="wfm-video-plan-seed-value" id="wfm-video-plan-seed-value-label">Noise Seed</label>
<div class="wfm-video-seed-inline">
<input type="number" id="wfm-video-plan-seed-value" class="wfm-input" value="0">
<label class="wfm-video-seed-randomize-inline"><input type="checkbox" id="wfm-video-plan-seed-randomize" checked> Rand</label>
</div>
</div>
</div>
<div class="wfm-video-plan-extrasettings">
<div>
<label for="wfm-video-plan-width" id="wfm-video-plan-width-label">Width</label>
<input type="number" id="wfm-video-plan-width" class="wfm-input" step="16" min="16" value="1280">
</div>
<div>
<label for="wfm-video-plan-height" id="wfm-video-plan-height-label">Height</label>
<input type="number" id="wfm-video-plan-height" class="wfm-input" step="16" min="16" value="720">
</div>
<div>
<label id="wfm-video-plan-turbo-mode-label">Turbo Mode</label>
<label class="wfm-video-checkbox-inline"><input type="checkbox" id="wfm-video-plan-turbo-mode"> Enabled</label>
</div>
<div>
<label for="wfm-video-plan-turbo-strength" id="wfm-video-plan-turbo-strength-label">Strength</label>
<input type="number" id="wfm-video-plan-turbo-strength" class="wfm-input" step="0.05" min="0" value="1">
</div>
<div>
<label for="wfm-video-plan-turbo-steps" id="wfm-video-plan-turbo-steps-label">Steps</label>
<input type="number" id="wfm-video-plan-turbo-steps" class="wfm-input" step="1" min="1" value="8">
</div>
<div>
<label id="wfm-video-plan-prompt-enhance-label">Prompt Enhance</label>
<label class="wfm-video-checkbox-inline"><input type="checkbox" id="wfm-video-plan-prompt-enhance"> Enabled</label>
</div>
</div>
</div>
@@ -2809,16 +2846,6 @@
</div>
<span id="wfm-video-plan-progress-text" class="wfm-gen-progress-text">Ready</span>
</div>
<div class="wfm-video-resolution-row" style="grid-template-columns:1fr 1fr;margin-top:8px;">
<div>
<label for="wfm-video-plan-seed-value">Noise Seed</label>
<input type="number" id="wfm-video-plan-seed-value" class="wfm-input" value="0">
</div>
<div class="wfm-video-seed-randomize-wrap">
<label><input type="checkbox" id="wfm-video-plan-seed-randomize" checked> Randomize</label>
</div>
</div>
</div>
<div id="wfm-video-runplan-plan" class="wfm-video-runplan-content" style="display:none;">