Get Dimensions
One keyed width-and-height pair, per profile
- width
- height
Width and height travel as a pair, and most config systems treat them as two separate numbers that drift apart. Get Dimensions is WorkflowX's node for routing them together: a Set Dimensions node publishes a keyed width+height, and Get Dimensions resolves both from the active profile at once, handing you width and height wires your Empty Latent (or resize node) consumes.
Think of it as the two-value cousin of the typed Set/Get nodes. One key, two numbers, always in step - which is exactly what you want when your portrait profile is 832×1216 and your landscape profile is 1216×832 and you keep getting them mixed up.
How it works
The value pair defaults to 1024×1024 and is constrained to 1–16384, so the published values stay sane. Set Dimensions passes its width and height straight through on its own outputs as well, meaning the Set node can stay in the data path of the branch it belongs to.
Get Dimensions resolves through the same scoped machinery as every Get in the pack. Set Dimensions sits in a ComfyUI group under a key; a Config SelectorX controller marks groups Active/Bypass/Mute/Ignore per named config; Get Dimensions reads the workflow JSON at queue time, finds the Set Dimensions in an Active group, and returns both values. Unlike the typed Gets it has no resolved_* provenance fields - the pair is simple enough not to need the cache-and-digest machinery. It also has no mute controls; it's a plain keyed relay for two ints.
Inputs and outputs
key(STRING) - exact match against the Set Dimensions key.width/height(INT, optional) - direct fallback inputs. Connect both if you want a fixed value for configs without a matching Set.- Outputs:
width(INT) andheight(INT).
The fallback inputs matter here because they're both required when used: the node errors if only one is connected. That's deliberate - a half-resolved dimension pair is a broken latent.
Install
Ships in WorkflowX-Configurator. ComfyUI Manager → search WorkflowX Configurator, or:
cd ComfyUI/custom_nodes
git clone https://github.com/haroonaslam/WorkflowX-Configurator
Restart ComfyUI, hard-refresh the browser. No extra dependencies.
Common issues
- "No Dimensions value found for key 'x'." - no matching Set Dimensions in an Active group, and no fallback. Either fix the key or connect both fallback inputs.
- Only width resolves. The node requires both fallback inputs together; a lone width connection throws.
- Values won't switch per profile. Re-queue after switching configs; resolution is at queue time.
Honest take: dimensions are a small thing, and a plain two-value primitive works fine for one profile. This node pays off when you're maintaining a profile matrix where resolution is one of the things that changes - and the paired output genuinely saves you from the "I set width but forgot height" class of bug.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| key | STRING | — | |
| widthopt | INT | — | |
| heightopt | INT | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |