Nodes/ComfyUI-MiniMaxH3-PrefixStream/MiniMax H3 Clip Bin Picker (Gallery Loader)
ComfyUI Node

MiniMax H3 Clip Bin Picker (Gallery Loader)

Choose the next H3 shot by looking at it, not by decoding filenames

By knoic·Created 2 days ago·Updated about 16 hours ago· 0
MiniMax H3 Clip Bin Picker (Gallery Loader)
    • latent
    • tail_frame
    • first_frame
    • prompt
    • clip_id
    project_nameDefault_Project
    modeAuto (首段全新 / 后续自动接力)
    filter_ratingAll (1-5 ⭐)
    clip_selectionlatest
    custom_clip_path

    The Clip Bin Picker is the payoff for the whole archive system this pack builds. Where the Saver files clips away, MiniMaxClipBinPicker ("MiniMax H3 Clip Bin Picker (Gallery Loader)") lets you look at what you've got - as an actual visual gallery with preview cards - and load one shot's latent and tail frame as the context for the next segment. It turns "which take do I continue from?" into a glance at a screen instead of a spelunk through output/ guessing which clip_0004 was the keeper.

    The killer detail: it outputs the full joint AV latent of the chosen historical clip, which is exactly what the Continuation Applier needs as context_latent. So the loop becomes: generate → Saver → run again → Picker picks the latest or a specific rated shot → Applier continues from it → repeat. And because you can reach back to any rated clip, not just the newest, you get branching - retake from shot 2's ending instead of being forced down a single linear chain.

    Modes and the fields that matter

    • project_name - which project bin to read. Projects are isolated, so this is also your "different story" selector.
    • mode - the behavioral switch:
      • Auto (recommended) - if the bin is empty it behaves as a first-clip generator with zero context; once clips exist it automatically continues the latest. No rewiring between clips.
      • Force Initial - start a fresh first clip, ignoring all history in the bin.
      • Strict Chaining - must chain from a chosen/latest shot; errors out if the bin is empty. Useful for pipelines that should never silently start fresh.
    • filter_rating - only consider clips at or above a star threshold (All / 3+ / 4+ / 5). If nothing matches, it falls back to all clips and warns. This is how you keep 1-star test garbage out of your continuation.
    • clip_selection - latest (default) grabs the newest qualifying clip; or type a specific clip_id (e.g. clip_20260908…) to jump back to a historical shot and branch; or type a shot tag name to match by label.
    • custom_clip_path - advanced: an absolute path to a clip folder anywhere on disk, for pulling in assets outside the default bin location.

    Outputs and where they go

    • latent - the loaded clip's joint AV latent → Continuation Applier's context_latent. The whole reason this node exists.
    • tail_frame and first_frame - images you can use as a visual/conditioning reference for the next segment (or just preview).
    • prompt - the original prompt stored with that clip, handy as a starting point for the next segment's text.
    • clip_id - the chosen clip's ID → feed it to the next Clip Bin Saver's parent_clip_id so the lineage records that this new shot was continued from that one.

    One behavior to know before it surprises you: in initial mode (Auto with an empty bin, or Force Initial) the node returns a placeholder - latent is None, the images are a placeholder card, and clip_id is the literal [INITIAL_GENERATION]. That's deliberate, and it's exactly why the pack also ships the "Safe" VAE decode nodes: a downstream VAEDecode that receives None samples would crash, while the safe variants gracefully return empty output. So if you see placeholder cards on your first run, that's the system working - don't panic and rewire everything.

    The pack ships a small web extension (the web/ folder) that turns the Picker into a real media browser: hover a card and the archived video plays a silent motion preview; click the ▶ MP4 badge (or double-click) for a full modal player with sound, timeline scrubbing, the stored prompt and shot parameters, and a "set as continuation source" action. None of that motion preview exists if clips were archived without save_video/ffmpeg (see the Saver page for that gotcha), but the still cards always work.

    Install

    Manager (search "MiniMaxH3 PrefixStream") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/knoic/ComfyUI-MiniMaxH3-PrefixStream.git
    cd ComfyUI-MiniMaxH3-PrefixStream
    pip install -r requirements.txt
    

    Restart ComfyUI and hard-refresh the browser (Ctrl+F5) - that refresh matters here, because the gallery is frontend JS and a stale browser cache is the usual reason the interactive player doesn't appear after install. Node lives under MiniMaxH3/ClipBin. And the standing reminder that applies to every H3 workflow: the weights themselves carry the MiniMax H3 Community License territory restrictions, which this pack doesn't alter.

    CategoryMiniMaxH3/ClipBin

    Inputs (5)

    NameTypeDefaultDescription
    project_nameSTRINGDefault_Project【选择项目库】要读取素材的项目文件夹名称(如 Default_Project)。可在 ComfyUI 运行控制台查看已存在的项目名称列表
    modeCOMBOAuto (首段全新 / 后续自动接力)【运行工作模式】 • Auto(强烈推荐):若项目库为空自动作为首段全新生成;后续运行时全自动接续上一段,无需任何拔线或手动操作! • Force Initial:强制开辟首段,忽略库内所有历史素材。 • Strict Chaining:严格接力模式,库内无镜头时直接报错提示
    filter_ratingCOMBOAll (1-5 ⭐)【星级过滤器】只读取大于等于该评级的镜头(如过滤掉 1~3 星的测试废案,只接续 4 星或 5 星的满意镜头)
    clip_selectionSTRINGlatest【镜头定位】 • 填 'latest'(默认):自动调取最新生成的优质镜头进行无缝接续 • 填 clip_id(如 clip_20260908...):精确跳转或回溯到指定的历史镜头开启新分支 • 填 shot 名称:按镜头标签名称匹配
    custom_clip_pathoptSTRING【自定义物理路径覆盖】可选高级选项。填入绝对路径可直接载入任意磁盘目录下的 Clip Bin 镜头文件夹

    Outputs (5)

    NameTypeDescription
    latentLATENT
    tail_frameIMAGE
    first_frameIMAGE
    promptSTRING
    clip_idSTRING