DimensionProviderFree modusCell
Your workflow's resolution, typed once
- free_width
- free_height
DimensionProviderFree modusCell is the "you type it once" solution to a problem everyone with a big workflow hits: the same resolution buried in six different nodes. It's two integer inputs and two integer outputs. That's the whole node. But it's genuinely useful, because of what you wire those outputs into.
Why you'd reach for it
Say your workflow does a small pass, upscales, then refines - that's an Empty Latent, a latent upscale, a ControlNet preprocessor, maybe a couple of custom resizing nodes. Without a shared source, "1x" means "I get to hunt through the graph and retype 1152x896 in four places, and miss one, and now my latents don't match." This node is the single place you edit. Change width and height, and every node fed from free_width / free_height follows along.
You can think of it as the same trick as a primitive node, but packaged as a named, searchable thing that visibly sits in the graph. It's not magic - it's a passthrough, and that's the point. The value lives in the wiring, not the code.
How it works
Under the hood it's one of the simplest nodes in ComfyUI: the prodvide_dimensions function (yes, that typo is in the source - this is a small hobby pack) just returns (width, height) untouched. width defaults to 512, height to 768, both clamped to 1–10000. No API calls, no model files, no dependencies - the pack's requirements.txt is literally empty. It ships MIT-licensed and hasn't been touched since a single December 2023 commit.
Inputs and outputs that matter
Only two inputs, and a beginner sets both:
- width (INT, default 512) - the horizontal resolution.
- height (INT, default 768) - the vertical resolution.
Outputs are free_width and free_height, both INT. Wire them into anything that takes an integer dimension - most commonly an Empty Latent Image, and from there the whole chain stays consistent. One honest caveat: ComfyUI's latent size needs to be a multiple of 8 (stricter for some newer models, like Flux's 64). The node won't stop you typing 1003x999; the Empty Latent downstream will throw an error, so keep presets in mind. That's what the pack's sibling node, DimensionProviderRatio, is for - it locks you to known-good sizes.
How to install
Either route works, and both take about ten seconds:
- ComfyUI Manager - search for the pack title, Preset Dimensions, and install.
- Manually - from your ComfyUI folder:
cd custom_nodes
git clone https://github.com/modusCell/ComfyUI-dimension-node-modusCell
Then restart ComfyUI. Search the node menu for "DimensionProvider" and you'll find it - it appears under its full class name with the modusCell suffix, in a category of the same name.
Common issues
Honestly, there isn't much to trip on. The realistic failure modes are: forgetting the multiple-of-8 rule above, and expecting the display-name overrides to show something prettier - they don't, because the pack maps the wrong keys, so you get the raw class name in the menu. Neither is a bug you need to fix; both are just things to know. If the node feels too trivial to install a pack for, you're not wrong, but for keeping a multi-step workflow's resolution in one editable spot, it does the job with zero friction.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 5121–10000 | — |
| height | INT | 7681–10000 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| free_width | INT | — |
| free_height | INT | — |