π CR XY Save Grid Image
Write each sweep result so CR XY From Folder can find it later
- image
Comfyroll's grid-comparison system is a two-step process: run your sweep and save each result as its own file, then point a second node at that folder to stitch everything into one labeled grid. CR XY Save Grid Image is step one - the node that actually writes each individual sweep result to disk in a predictable spot, so CR XY From Folder has something real to read back once the sweep's done.
How it works
mode picks between Save, which persists the file to disk, and Preview, which just shows the image in the UI without writing anything - same distinction as ComfyUI's own SaveImage vs PreviewImage. output_folder is a dropdown of your existing output subfolders; output_path is the optional escape hatch if the folder you want isn't in that list yet - type the path directly rather than waiting for it to appear. filename_prefix (default CR) tags every file, and file_format picks webp, jpg, png, or tif. Like any ComfyUI save node, it appends a running counter to the filename automatically, so a hundred sweep images land on disk in a sortable order - which matters, because CR XY From Folder later pulls a specific start_indexβend_index range out of that same folder.
The optional trigger input gates when the node actually fires, the same convention as the trigger on CR XY From Folder - wire something like this pack's CR Trigger node into it if you want to control exactly which runs get saved rather than saving on every single execution regardless of where you are in the sweep.
The inputs that matter
mode-Savewrites to disk,Previewdoes not.output_folder- pick from your existing output subfolders.output_path(optional) - type a path directly if the folder you want doesn't exist yet.image- the sweep result to save, wired from wherever your grid's per-cell generation ends.filename_prefix(defaultCR) andfile_format- naming and format for the saved file.trigger(optional, defaultfalse) - gates when the save happens.
This node has no data outputs - is_output_node is true, meaning it's a terminal step in the graph. Nothing downstream to wire.
How to install it
ComfyUI Manager - search "Comfyroll Studio," install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git
then restart. No models, no unusual dependencies - this just writes image files.
Common issues
Nothing shows up for CR XY From Folder to read. Check mode first - if it's left on Preview, nothing ever hits disk, and the folder-assembly node downstream will find an empty or incomplete set. This is the easiest trap in the whole two-step system.
output_folder dropdown is empty or missing your target. It only lists folders that already exist under your ComfyUI output directory. If you want a fresh folder for a new sweep, don't wait for it to appear in the dropdown - type it straight into the optional output_path field instead.
Grid comes out incomplete once assembled. If some sweep steps never actually saved (a trigger gate that didn't fire, or mode toggled off mid-run), CR XY From Folder's start_indexβend_index range will have gaps in it. Worth spot-checking the output folder's file count against your expected x_columns Γ y_rows total before assembling.
Comfyroll doesn't load at startup. The real failure people hit is Comfyroll Studio: Failed to load ... nodes with a NameError on a specific missing class - a partial install (interrupted clone or incomplete CivitAI zip), not a dependency conflict. A clean reinstall through Manager fixes it.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | 2 options: Save, Preview | |
| output_folder | COMBO | 0 options: | |
| image | IMAGE | β | |
| filename_prefix | STRING | CR | β |
| file_format | COMBO | 4 options: webp, jpg, png, tif | |
| output_pathopt | STRING | β | |
| triggeropt | BOOLEAN | false | β |
Outputs (0)
No outputs