Wan26多镜头
Five Shots, Timestamps, and the Slider That Lies
- 多镜头提示词
- 完整提示词
- 镜头结构表
Multi-shot video in one prompt is mostly a formatting problem. The model needs to know which shot happens when, how the camera behaves in each, and how they join - and writing that by hand in the order Wan likes is where takes go wrong. This node writes it for you.
What it is, and where it fits
Wan26多镜头 is a prompt-assembly node for Wan 2.6, the December 2025 release that added shot switching and character interaction - and which, like 2.5 before it, shipped commercial-only. No open weights, so this feeds the Wan 2.6 API node, not a local checkpoint. The author's own note is that the 2.5 node works fine as a plain image-to-video node on 2.6 too; this is the one you want when the clip is a sequence.
The reason this is worth a node rather than a paragraph: Wan responds well to time-stamped shot blocks, and multi-shot prompting has been a known (if fiddly) technique on the open 2.2 weights for a while - people post consistent scene and character results from prompt structure alone. This formalises the structure and numbers the shots.
How it builds the prompt
You get three outputs. 多镜头提示词 is the shot list itself: an optional overall-description sentence, one transition sentence, then each shot as a Chinese ordinal, a bracketed time range and the description:
这个故事以第三人称视角,讲述了一个关于放弃与重拾希望的短剧。
镜头间使用硬切转场。
第一个镜头[0-3秒]一个男孩在操场的角落独自坐着,低头望着手中的信纸…,镜头推近主体
第二个镜头[4-6秒]硬切转场,固定机位,聚焦于男孩的眼睛…
完整提示词 wraps that with a total-duration line up front and your overall description and extra instructions labelled at the end - the one to actually feed the API node. 镜头结构表 is a plain-text table (序号 | 时间范围 | 时长 | 内容概要) of what you just built. It's a readout for you, not a prompt; wiring it into anything is a mistake.
Camera movement only gets appended to a shot if you pick something other than 无, and it's trimmed down to the core movement clause rather than the full speed/duration sentence the I2V node uses.
The inputs that matter
Three required, and the third one is a trap door:
- 总体描述 - the story summary. Worth writing properly: it's the only place the model learns that shot 3 relates to shot 1.
- 镜头数量 - a 1–5 slider.
- 启用智能多镜 - a boolean. Turn it on and the node throws away every per-shot field and instead emits a single prompt asking Wan to build a 3–5 shot narrative itself from the overall description, with your 附加指令 appended if you wrote one. The shot-list output and the complete prompt become the same string, and 镜头结构表 becomes the literal text
智能多镜模式已启用. Nice when you have no shot breakdown; useless when you do, and it silently ignores everything you typed per shot.
The per-shot blocks are all optional: 镜头开始时间 / 结束时间 as text (0秒, 3秒), 运镜方式 (the same 35 movements as elsewhere in the pack), and 镜头描述. Plus 转场效果 (硬切转场 default, 淡入淡出, 交叉溶解, 滑动转场, 无), 时间格式 (秒 or 帧), 视频总时长, and 附加指令 - whose default is a sentence about keeping subject, scene and mood consistent and the narrative coherent between shots. That default is good; keep it unless you're deliberately cutting loose.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/a63976659/ComfyUI-prompt-formula.git
Or use ComfyUI Manager and search prompt-formula. Restart, then it's under 📕提示词公式 / 图转视频. Nothing to download - the pack needs no models and requirements.txt is a single torch>=2.0.0 line.
Gotchas
Raising 镜头数量 alone doesn't add shots. Shots 4 and 5 are only included when the slider is high enough and their description field is non-empty. Set the slider to 5, leave 镜头4描述 and 镜头5描述 blank, and you get a three-shot prompt with no warning. Fill the descriptions first, then the slider is just what makes them visible.
The slider, in other words, is a UI control - not a count. If you're on an older version of the pack, this is the same mechanism the author described when the shot count was moved onto a slider: one glance tells you the shot count, but the descriptions are what actually drive the output.
帧 mode is 30fps, and it also relabels the total. Switch 时间格式 to 帧 and the node divides your typed numbers by 30 to print seconds - so you enter frames, and the total-duration line gets the same unit stuck on it. Pick one unit per run; mixing seconds and frames across shots is how you end up with a shot list that runs backwards.
The default shot times overrun the length limit. The shipped defaults run 0–3, 4–6, 7–10, 11–13 and 14–16 seconds, while 视频总时长 caps at 15. With four or five shots you should retime them by hand so the last shot ends inside the total you declared - otherwise your prompt contains two contradictory durations, and the model gets to pick.
API calls cost per run. Wan 2.6 is API-only, and video is the expensive corner of the metered-node world. Build and test the prompt with the structural table in front of you before you send it.
Inputs (27)
| Name | Type | Default | Description |
|---|---|---|---|
| 总体描述 | STRING | 这个故事以第三人称视角,讲述了一个关于放弃与重拾希望的短剧。 | — |
| 镜头数量 | INT | 31–5 | — |
| 启用智能多镜 | BOOLEAN | false | — |
| 镜头1开始时间opt | STRING | 0秒 | — |
| 镜头1结束时间opt | STRING | 3秒 | — |
| 镜头1运镜方式opt | COMBO | 无 | 35 options: 无, 固定镜头, 镜头跟随, 推近镜头, 拉远镜头, 快速推近, +29 |
| 镜头1描述opt | STRING | 一个男孩在操场的角落独自坐着,低头望着手中的信纸,随后轻轻叹气,眼神中透露出迷茫。 | — |
| 镜头2开始时间opt | STRING | 4秒 | — |
| 镜头2结束时间opt | STRING | 6秒 | — |
| 镜头2运镜方式opt | COMBO | 固定镜头 | 35 options: 无, 固定镜头, 镜头跟随, 推近镜头, 拉远镜头, 快速推近, +29 |
| 镜头2描述opt | STRING | 硬切转场,固定机位,聚焦于男孩的眼睛,泪光闪烁,带着失落和无助。 | — |
| 镜头3开始时间opt | STRING | 7秒 | — |
| 镜头3结束时间opt | STRING | 10秒 | — |
| 镜头3运镜方式opt | COMBO | 无 | 35 options: 无, 固定镜头, 镜头跟随, 推近镜头, 拉远镜头, 快速推近, +29 |
| 镜头3描述opt | STRING | 硬切转场,场景转至一间简朴的教室。一个女孩眼神温和而坚定,穿着朴素的衣着,面带温和而坚定的笑容,走到男孩的身边安慰他。 | — |
| 镜头4开始时间opt | STRING | 11秒 | — |
| 镜头4结束时间opt | STRING | 13秒 | — |
| 镜头4运镜方式opt | COMBO | 无 | 35 options: 无, 固定镜头, 镜头跟随, 推近镜头, 拉远镜头, 快速推近, +29 |
| 镜头4描述opt | STRING | — | |
| 镜头5开始时间opt | STRING | 14秒 | — |
| 镜头5结束时间opt | STRING | 16秒 | — |
| 镜头5运镜方式opt | COMBO | 无 | 35 options: 无, 固定镜头, 镜头跟随, 推近镜头, 拉远镜头, 快速推近, +29 |
| 镜头5描述opt | STRING | — | |
| 转场效果opt | COMBO | 硬切转场 | 5 options: 硬切转场, 淡入淡出, 交叉溶解, 滑动转场, 无 |
| 时间格式opt | COMBO | 秒 | 2 options: 秒, 帧 |
| 视频总时长opt | FLOAT | 151–15 | — |
| 附加指令opt | STRING | 保持画面主体、场景、氛围等关键信息的一致性,确保镜头间连贯叙事。 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| 多镜头提示词 | STRING | — |
| 完整提示词 | STRING | — |
| 镜头结构表 | STRING | — |