Nodes/Difforum/Difforum · Camera (keys)
ComfyUI Node

Difforum · Camera (keys)

Keyframed camera as text, one key per line: frame: move [speed] [intensity] [lens] [ease] Moves blend into each other (`transition` 1.0 = continuous crane move, 0.0 = hard cuts). `loop_mode` makes the path periodic over `cycle_frames` so the clip loops without a crossfade. The Director timeline writes the same thing visually - use this node when you prefer typing.

By chillithebillis·Created 3 months ago·Updated about 7 hours ago· 8
Difforum · Camera (keys)
  • params
  • audio
  • camera
  • cycle_frames
  • info
◄keys0: zoom_in 0.6 0.5 40 ease_in_out 30: pan_right 1.0 0.8 40 ease_in_out 60: spiral 1.4 1.1 55 ease_in 90: zoom_out 0.5 0.45 40 ease_out►
◄camera_mode2d►
◄transition1.00►
◄speed1.00►
◄loop_modeoff►
◄cycle_frames0►
◄harmonics3►
CategoryDifforum/2 · Direction

Inputs (9)

NameTypeDefaultDescription
paramsDIFFORUM_PARAMSFrom Setup: frame count, fps, width and height. Plug the same Setup everywhere.
keysSTRING0: zoom_in 0.6 0.5 40 ease_in_out 30: pan_right 1.0 0.8 40 ease_in_out 60: spiral 1.4 1.1 55 ease_in 90: zoom_out 0.5 0.45 40 ease_outOne key per line: frame: move [speed] [intensity] [lens°] [ease]. e.g. '48: orbit_right 1.2 0.8 35 ease_in_out'. Frames can be '2.5s'.
camera_modeCOMBO2d2d = flat moves; 3d = parallax with a depth map.
transitionFLOAT1.000–11 = moves blend into each other; 0 = hard cuts at each key.
speedFLOAT1.000–5Master speed on every key.
loop_modeCOMBOoffharmonic / zero_mean make the path periodic over cycle_frames, so the clip loops with no crossfade (installations). off = free path.
cycle_framesINT00–100000Frames per loop. 0 = the whole clip is one cycle. Feeds Loop 'keep settled lap'.
harmonicsINT31–16harmonic loop: how many sine terms describe the path. More = closer to the keys, fewer = smoother loop.
audiooptDIFFORUM_AUDIOFrom Audio Analyzer: per-frame loudness, bands and beats.

Outputs (3)

NameTypeDescription
cameraDIFFORUM_CAMERA—
cycle_framesINT—
infoSTRING—