(deforum) Append
Spray a suffix onto every prompt in your animation
- deforum_data
- deforum_data
The lazy artist's dream: one node that appends text to every prompt in your animation at once. (deforum) Append takes whatever's in the deforum_data prompt map and tacks a suffix onto selected keyframes - so instead of editing twenty prompt lines to add "cinematic lighting, 8k," you write it once, here, and it propagates. It's the difference between tweaking a whole animation and tweaking one field.
How it works
The node reads the existing prompts dict out of deforum_data (the keyframe→prompt map built by the (deforum) Prompt node) and rewrites it with the appended text. How the suffix lands depends on two toggles:
- append_to_all = Yes - the first line of
append_textis appended to every prompt, regardless of keyframe. - append_to_all = No (default) - each line of
append_textis appended to the prompt at a keyframe spaced bykeyframe_interval. Line 0 goes to keyframe 0, line 1 to keyframekeyframe_interval, and so on. This lets you attach different suffixes at different moments of the animation from one text box.
So with append_text of "a, cinematic lighting" and keyframe_interval 50, you could have the lighting shift kick in every 50 frames with a different line each time.
The inputs that matter
- append_text (multiline STRING) - the text to add. Multiple lines = one suffix per keyframe interval step.
- keyframe_interval (INT, default 50) - spacing between the keyframes that get appended (when not appending to all).
- append_to_all (
No/Yes, default No) - apply to every prompt instead of on the interval grid. - use_neg (
No/Yes, default No) - when Yes, the appended text is prefixed with--neg. That's Deforum's inline-negative syntax: everything after--negin a prompt line is treated as negative-prompt content. So you can append "foggy, --neg fog" and get a single node that both adds a style and removes an unwanted element.
Output:
- deforum_data - the chain with the rewritten prompt map.
Installing this pack
Part of Deforum Nodes by XmYx. ComfyUI Manager: search Deforum Nodes, or:
cd ComfyUI/custom_nodes
git clone https://github.com/XmYx/deforum-comfy-nodes
Restart, let install.py pull the deforum-studio backend plus the scientific-Python stack (numpy < 2.0, Python 3.10 required). Pure prompt plumbing - no models.
Common issues
- Nothing gets appended. If
deforum_datahas nopromptsyet (the(deforum) Promptnode isn't upstream, or the chain doesn't connect), the node quietly creates an empty prompt map and appends to nothing. Check the chain order: Prompt before Append. - Only some keyframes change. That's
append_to_all = Nodoing its interval thing. If you wanted everywhere, flip it to Yes. --negshows up in the output text literally. It's only interpreted by the prompt-splitting logic downstream (the Iterator splits on--neg). If you're feeding the string to a plain CLIP Text Encode, the--negprefix is just characters - make sure you're in the Deforum pipeline.- Doubled suffixes if you re-run. Appending is destructive on the same prompt map - running the node twice appends twice. Rebuild the chain or reset before re-running.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| append_text | STRING | — | |
| keyframe_interval | INT | 501–8192 | — |
| deforum_dataopt | deforum_data | — | |
| append_to_allopt | COMBO | No | 2 options: No, Yes |
| use_negopt | COMBO | No | 2 options: No, Yes |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| deforum_data | deforum_data | — |