Nodes/Deforum Nodes/(deforum) Append
ComfyUI Node

(deforum) Append

Spray a suffix onto every prompt in your animation

By XmYx·Created 3 years ago·Updated 3 months ago· 198
(deforum) Append
  • deforum_data
  • deforum_data
append_text
keyframe_interval50
append_to_allNo
use_negNo

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_text is appended to every prompt, regardless of keyframe.
  • append_to_all = No (default) - each line of append_text is appended to the prompt at a keyframe spaced by keyframe_interval. Line 0 goes to keyframe 0, line 1 to keyframe keyframe_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 --neg in 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_data has no prompts yet (the (deforum) Prompt node 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 = No doing its interval thing. If you wanted everywhere, flip it to Yes.
  • --neg shows 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 --neg prefix 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.
Categorydeforum/prompt

Inputs (5)

NameTypeDefaultDescription
append_textSTRING
keyframe_intervalINT501–8192
deforum_dataoptdeforum_data
append_to_alloptCOMBONo2 options: No, Yes
use_negoptCOMBONo2 options: No, Yes

Outputs (1)

NameTypeDescription
deforum_datadeforum_data