DP Clean Prompt Travel
Fix up a prompt-travel schedule so the scheduler parses it
- clean_text
Prompt travel is the technique where your prompt changes across the frames of an animation - frame 0 says one thing, frame 48 says another, and the model interpolates between them. The schedule for that is written in a specific format (a list of "frame": "prompt" lines), and schedulers like AnimateDiff's Batch Prompt Schedule are fussy about it. One misplaced comma or bracket and the whole thing fails to parse. This node cleans that schedule text so it goes in clean.
It's the prompt-travel-aware cousin of DP_Clean_Prompt, from DesertPixelAi's Desert-Pixel-Nodes pack - a big set of quality-of-life tools that don't generate anything, they just smooth over the annoying parts of a workflow. Where the plain Clean Prompt tidies an ordinary comma-separated prompt, this one knows the travel format and cleans without wrecking the frame-number structure the scheduler depends on.
How it works
You hand it a prompt-travel string and it returns a cleaned version: consistent formatting, trimmed stray separators, the syntax a schedule node expects. The reason it's a separate node from Clean Prompt is that a travel schedule isn't just a flat list - it has frame keys and per-keyframe prompts, and a naive comma cleanup would happily mangle that. This one preserves the structure.
Where it fits: right after whatever produced your schedule. If you built the travel string by hand, or generated it from one of the pack's Animation Calculator nodes, run it through here before it reaches AnimateDiff-style keyframe scheduling.
A reality check worth having: AnimateDiff, the classic home of prompt travel, has been overtaken by Wan 2.2 and LTX for general video work - if you're starting a new video project, that's where to look. But AnimateDiff-Evolved is still maintained and still runs, and a real niche keeps using it for its particular morphing look. If that's you, this node is aimed squarely at your pipeline.
The inputs and outputs that matter
input_text- a multiline string: your prompt-travel schedule.
Output is clean_text (a string), ready to wire into your prompt-schedule node.
How to install it
- ComfyUI Manager: search "Desert Pixel", install, restart. No downloads.
- Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/DesertPixelAi/ComfyUI-Desert-Pixel-Nodes,pip install -r requirements.txtif present, restart.
It's under the DP category.
Common issues
The most common reason people reach for this is a scheduler that errors on their travel string. Cleaning helps with formatting problems - stray punctuation, spacing, inconsistent separators - but it can't invent structure that isn't there. If your schedule references frame numbers past your total frame count, or has prompts with unescaped quotes that break the format entirely, cleaning won't rescue a genuinely malformed schedule. Fix the structure, then clean.
And make sure you're using this variant, not plain DP_Clean_Prompt, for travel strings - the plain one doesn't preserve the keyframe format and can leave you with a schedule the scheduler still won't accept.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input_text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| clean_text | STRING | — |