Nodes/Difforum/Difforum · Sample Schedule
ComfyUI Node

Difforum · Sample Schedule

The two-second probe for any Difforum schedule

By chillithebillis·Created 3 months ago·Updated about a month ago· 7
Difforum · Sample Schedule
  • schedule
  • value
frame0

Difforum Sample Schedule is the smallest node in the pack and possibly the most useful debugging toy in it. You hand it a DIFFORUM_SCHEDULE (anything that came out of Difforum · Schedule, an audio schedule, a seamless camera's output) and a frame number, and it returns the curve's value at that exact frame as a plain FLOAT.

That's it. One input pair, one output. It exists because a schedule is a dense per-frame array - there's no "what does the strength do at frame 60" without either asking the node or dumping the whole curve. This node asks.

When you'd actually reach for it

  • Verifying a formula. You wrote 0:(0.2 + 0.8*amp) and you're not sure it's doing what you think. Sample it at a few frames and compare.
  • Grabbing one value for another input. Sample the zoom schedule at frame 40 and feed the resulting float straight into a fixed parameter elsewhere - a poor man's frame-locked value.
  • Sanity-checking an audio curve. Before you wire a bass curve into a camera move, sample it at the beat you care about. Cheaper than a render.

The frame input is a simple INT (0 to 100000); set it and read the value output. There's no trick to it - that's the appeal.

Install and gotchas

Difforum installs as one pack, so the steps are shared across all its nodes:

cd ComfyUI/custom_nodes
git clone https://github.com/chillithebillis/Difforum.git difforum

Then restart ComfyUI - the console prints [Difforum] loaded N nodes. ComfyUI Manager can do it for you too (search "Difforum"). The only hard dependency is numpy, which ComfyUI already bundles, and the pack is built for Python 3.12+, so you won't hit the version wall that the original Deforum library runs into.

Worth knowing: this node is GPU-free. It's pure Python float math, so it costs nothing and runs instantly - attach a couple of them around a schedule to build a mini readout before you commit to a render. If you want the whole curve at a glance instead of one point at a time, that's what Difforum · Schedule Info (text summary + sparkline) and Difforum · Schedule Plot (an actual image) are for. Sample Schedule is the scalpel; those are the X-ray.

One honest caveat: it's a utility node, so don't expect it to be interesting. It samples a curve at a frame and says the number. But when a camera move is doing something baffling and you need to know what the schedule was thinking at frame 87, it's the fastest answer in the pack.

CategoryDifforum/schedule

Inputs (2)

NameTypeDefaultDescription
scheduleDIFFORUM_SCHEDULE
frameINT00–100000

Outputs (1)

NameTypeDescription
valueFLOAT