Nodes/comfyui-ea-nodes/EA Manifest Pick
ComfyUI Node

EA Manifest Pick

Pick clip #N out of a manifest, with the path metadata to match

By ExoticArts·Created about a year ago·Updated 10 months ago· 0
EA Manifest Pick
    • fullpath
    • filename
    • stem
    • parent
    • ext
    manifest_json[]
    index0

    Once EA List Videos has handed you a JSON manifest of every clip in a folder, you still need a way to say "give me number 7." EA Manifest Pick is that selector: feed it the manifest and an index, and it returns the chosen file's path plus every useful piece of metadata about that path.

    It's the indexing half of the pack's batch-video trio (List → Pick → Load), and its whole job is turning an integer into a filename you can wire into EA Video Load.

    The inputs

    Only two, both required:

    • manifest_json - the JSON array string, straight from EA List Videos. (It accepts a raw [] default, so the node won't blow up before you've wired anything.)
    • index - which entry to select. The nicest detail: it wraps around with modulo, so index of 12 on a 5-item manifest gives you item 2 instead of an error. That makes loop counters trivially safe - you can drive this from an unbounded counter without ever hitting an out-of-range crash.

    The outputs

    Five strings, all derived from the selected entry:

    • fullpath - the absolute path, ready to drop into EA Video Load's path input.
    • filename - just the name with extension (clip_07.mp4).
    • stem - the name without extension (clip_07) - handy for building output filenames via EA Filename → Combine.
    • parent - the directory it lives in.
    • ext - the lowercase extension (.mp4).

    That stem/parent split is where the value hides: batch loops that save outputs named after their inputs need the stem, and the node gives it to you without string-slicing math. An empty or malformed manifest returns empty strings across the board rather than crashing, which is forgiving but also easy to misread - if fullpath comes back blank, check the manifest input first.

    The loop it belongs to

    Typical wiring: EA List Videosmanifest_jsonEA Manifest PickfullpathEA Video Load → frames → your processing → EA Video Save (Idempotent), with the counter node driving index. One counter, one node, and you've processed a whole directory without hand-editing a single path.

    Install

    Part of comfyui-ea-nodes: ComfyUI Manager → search comfyui-ea-nodes, or git clone https://github.com/ExoticArts/comfyui-ea-nodes into custom_nodes/, restart, hard-refresh. No extra Python dependencies.

    CategoryEA / Video

    Inputs (2)

    NameTypeDefaultDescription
    manifest_jsonSTRING[]
    indexINT00–1000000

    Outputs (5)

    NameTypeDescription
    fullpathSTRING
    filenameSTRING
    stemSTRING
    parentSTRING
    extSTRING