This repository facilitates the integration of ComfyUI workflow into Grasshopper.
- Download and use the ComfyUI portable version from https://github.com/comfyanonymous/ComfyUI.
- Copy
gh_nodes.py
to<A>:\ComfyUI_windows_portable\ComfyUI\custom_nodes
. The custom nodes will appear under Grasshopper in the nodes menu.
- GHSampler
- GHPrompt
- GHString
- GHInteger
- GHFloat
- GHBool
- GHFile
- LoadImageGH
When using them, make sure to give them a nickname. Required nicknames are: seed
, cfg
, denoise
, steps
, width
, height
, positive
, negative
, sampler
, scheduler
, .....
- Create your final workflow in ComfyUI.
- Save the JSON file without spaces in the name.
- Save the API JSON file without spaces in the name.
- Launch ComfyUI.
- Use Grasshopper components: https://www.food4rhino.com/en/app/comfyui-rhino-grasshopper
- Use Load Model component to choose a model: checkpoint, lora, controlnet, etc.
- Use Samplers and Schedulers components.
- If
GHInteger_seed = -1
, this creates a random seed; otherwise, you can fix it, and you can use Sampler seed component. - Use Queue Prompt to run the queue, and always check ComfyUI cmd window or http://127.0.0.1:8188 to make sure it is running.
All images and meshes will be saved in the default folder: <A>:\ComfyUI_windows_portable\ComfyUI\output\
.
- I have an old laptop that doesn't support GPU, so I can't provide any help for ComfyUI workflows.
- If you find this useful: Buy me a Coffee