Nodes/playbook-nodes/Playbook Aspect Ratio Select (External)
ComfyUI Node

Playbook Aspect Ratio Select (External)

Five aspect ratios, two integers, no drama

By playbook3d·Created 2 years ago·Updated about a year ago· 21
Playbook Aspect Ratio Select (External)
    • x
    • y
    idNode ID
    labelNode Label
    default_value

    Playbook Aspect Ratio Select is the simplest node in the Playbook Nodes pack: a dropdown with five preset aspect ratios that outputs two integers, the x and y of the ratio. That's it. It's the node you grab when you're tired of typing 1024, 1024 and want to pick "16:9" from a list instead.

    It ships in the Playbook3D ComfyUI pack, which mostly exists to stream cloud 3D renders into your workflows. This particular node doesn't touch their cloud at all - it's a pure local helper that happens to ride along in the pack. If you've ever wired a "1:1" text widget into a parser just to get a resolution, this saves you the regex.

    The inputs and output

    • id and label - strings with defaults "Node ID" and "Node Label". Same story as the rest of the pack's external nodes: they're metadata for binding controls in the Playbook3D web UI when the workflow runs on their platform. Locally they do nothing.
    • default_value - the dropdown: 1:1, 16:9, 9:16, 4:3, 3:4.

    Outputs are x and y, both integers, the two parts of the ratio. So picking "16:9" gives you 16 and 9. That's the entire mechanism - a dict lookup with a (1, 1) fallback for anything unexpected.

    Install

    Same as every node in this pack - ComfyUI Manager, search for Playbook Nodes, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/playbook3d/playbook3d-comfyui-nodes
    

    Restart ComfyUI and it shows up in the "Playbook 3D" category. No API key, no model downloads, no dependencies beyond what ComfyUI already has.

    Troubleshooting

    Not much to go wrong. If you're feeding x and y into an empty-latent node, remember these are ratio components, not pixels - you'll multiply them by a base resolution yourself (or whatever your latent-size helper does). And if a ratio isn't in the list, the node falls back to 1:1 rather than erroring, which is polite but also means a typo'd choice silently gives you a square. If that's not what you got, check the dropdown. It's a tiny node and it does exactly one job, which is more than you can say for most things in the Playbook pack.

    CategoryPlaybook 3D

    Inputs (3)

    NameTypeDefaultDescription
    idSTRINGNode ID
    labelSTRINGNode Label
    default_valueCOMBO5 options: 1:1, 16:9, 9:16, 4:3, 3:4

    Outputs (2)

    NameTypeDescription
    xINT
    yINT