Skip to content

seghier/Grasshopper-ComfyUI-Nodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grasshopper ComfyUI Nodes

Convert and Use ComfyUI Workflow within Grasshopper

This repository facilitates the integration of ComfyUI workflow into Grasshopper.

Installation Steps:

  1. Download and use the ComfyUI portable version from https://github.com/comfyanonymous/ComfyUI.
  2. Copy gh_nodes.py to <A>:\ComfyUI_windows_portable\ComfyUI\custom_nodes. The custom nodes will appear under Grasshopper in the nodes menu.

Available Nodes:

  • 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, .....

Screenshots:

Screenshot 2024-04-18 061143 Screenshot 2

Usage Steps:

  1. Create your final workflow in ComfyUI.
  2. Save the JSON file without spaces in the name.
  3. Save the API JSON file without spaces in the name.
  4. Launch ComfyUI.
  5. Use Grasshopper components: https://www.food4rhino.com/en/app/comfyui-rhino-grasshopper
  6. Use Load Model component to choose a model: checkpoint, lora, controlnet, etc.
  7. Use Samplers and Schedulers components.
  8. If GHInteger_seed = -1, this creates a random seed; otherwise, you can fix it, and you can use Sampler seed component.
  9. 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\.

Important:

  • 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

About

Convert and use ComfyUI workflow within Grasshopper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published