Set Context Extras ππ π
The node that actually turns ContextRef or NaiveReuse on
- context_opts
- context_extras
- CONTEXT_OPTS
Everything you build with ContextRef or NaiveReuse - the strength dials, the keyframe schedules, the mode and tune settings - is just a description sitting in its own little side-graph until it passes through this node. Set Context Extras is the connector: it takes your Context Options (the node that configures the sliding context window itself - length, overlap, and so on, built elsewhere in AnimateDiff-Evolved) and attaches your Context Extras chain to it, producing the combined settings object your sampler actually uses.
What it does
context_opts (required) is your existing Context Options node - whatever you're already using to configure the sliding window for a long or looped animation. context_extras (optional) is where you plug in the CONTEXT_EXTRAS output from ContextRef and/or NaiveReuse - and since that type is a linked list via each node's prev_extras input, you can chain both together and feed the combined result in here as one input. The output, CONTEXT_OPTS, is what you wire into your AnimateDiff model-apply node in place of the bare Context Options you started with.
That's the whole node. It has no logic to tune, no strength dial of its own - it's purely the plug that makes the rest of the Context Extras system reachable by the sampler.
Why this is easy to miss
Because ContextRef and NaiveReuse each output something (CONTEXT_EXTRAS) that looks complete on its own - it's a typed connection, and the graph runs without errors if you leave it unplugged from anything downstream - it's genuinely easy to build a whole ContextRef setup, connect nothing further, and only notice later that your render looks exactly like it would have without any of it. If you've configured strength, mode, tune, and keyframes, and the render still shows the same drift you were trying to fix, this is the first node to check: is context_extras actually wired in, and is the resulting CONTEXT_OPTS - not the original bare Context Options - the thing actually reaching your sampler?
Installing it
ComfyUI Manager: search AnimateDiff Evolved, author Kosinkadink, install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved, restart. This node is pure graph wiring - no models involved - but the surrounding AnimateDiff workflow still needs a motion module downloaded per the README's Model Setup section before any of this produces real output.
Common issues
Beyond the "forgot to wire it in" trap above, the other thing worth checking is that you're feeding a genuine Context Options node into context_opts and not accidentally leaving the sliding-context system disabled entirely - Context Extras only has anything to attach to once you're actually using context windows for a long or looped render. If your clip is short enough to fit in a single window, there's nothing here to configure in the first place.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| context_opts | CONTEXT_OPTIONS | β | |
| context_extrasopt | CONTEXT_EXTRAS | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| CONTEXT_OPTS | CONTEXT_OPTIONS | β |