Extensions/ComfyUI-Blender
ComfyUI Extension

ComfyUI-Blender

Blender plugin to send requests to a ComfyUI server.

By alexisrolland·Created about a year ago·Updated 5 days ago· 185
alexisrolland/ComfyUI-Blender
Nodes19
On cloudLocal install
Categoryblender
Stars185
Updated5 days ago

Nodes (19)

Blender Input Boolean

The checkbox that shows up in your Blender panel

blender
Blender Input Combo Box

A dropdown on your Blender panel, and the only input node with a list field

blender
Blender Input Float

A float slider that follows you into Blender

blender
Blender Input Group

A box to keep your Blender panel from looking like a dumpster fire

blender
Blender Input Integer

A number field on your Blender panel that doesn't make you open ComfyUI

blender
Blender Input Load 3D

Hand a 3D asset to the workflow from the input/3d folder

blender
Blender Input Load Checkpoint

Pick your checkpoint from a Blender panel — same loader, new home

blender
Blender Input Load Diffusion Model

Load a standalone diffusion model from your Blender panel — the Flux-era loader

blender
Blender Input Load Image

Feed an image into the workflow from your Blender panel

blender
Blender Input Load LoRA

A LoRA dropdown on your Blender panel — and one you can chain

blender
Blender Input Load Mask

A mask picker that skips the image and reads alpha only

blender
Blender Input Sampler

A sampler dropdown on your Blender panel — straight from the server's list

blender
Blender Input Seed

A seed spinner on your Blender panel — same seed every take, until you don't want it

blender
Blender Input String

A text field on your Blender panel, with path-formatting that actually saves you

blender
Blender Input String Multiline

The big text box — for prompts you actually want to read while you write them

blender
Blender Output Download 3D

The node that says 'send this 3D file back to Blender'

blender
Blender Output Save Glb

Save a GLB and hand it back to Blender

blender
Blender Output Save Image

Where your renders land, and how Blender finds them

blender
Blender Output String

See what your workflow actually said — a text readout for the panel

blender
Readme

ComfyUI-Blender

ComfyUI Registry Latest Release

This respository contains both custom nodes to be installed on the ComfyUI server and the Blender add-on to send workflows to the ComfyUI server. They can be used as follow:

  • Create a workflow in ComfyUI with the Blender nodes.
  • Run the workflow to confirm it executes properly.
  • Export the workflow in API format.
  • Import the workflow in the Blender add-on

The Blender add-on UI is automatically composed according to the input and output nodes used in the workflow.

Screenshot Blender

Getting Started

Setup

ComfyUI Setup

Download and install ComfyUI. If you are new to ComfyUI, refer to the original repository to get started. Make sure you have the latest version.

At the time of writing this, the latest version was ComfyUI v0.3.75. This version required to update some of the ComfyUI-Blender nodes to the custom node schema v3. Making them incompatible with earlier versions of ComfyUI.

Install the ComfyUI-Blender nodes from the ComfyUI-Manager or by cloning this repository in the custom nodes folder of ComfyUI:

cd ./ComfyUI/custom_nodes
git clone https://github.com/alexisrolland/ComfyUI-Blender.git

If the ComfyUI server runs on a different machine than the Blender client, it must be started with the argument --listen. See ComfyUI documentation: Setting Up LAN Access for ComfyUI.

Install Blender Add-on

Download the add-on package comfyui_blender_[...].zip from the LATEST RELEASE.

Make sure you have a recent version of Blender.

  • The add-on has been updated to support Blender v5.0 from version v4.0.0 onward.
  • The last version of the add-on to support Blender v4.5 is v3.3.4.

In Blender, go to Edit > Preferences > Add-ons > Install from Disk > select the zip package.

Install Blender Add-on

Update the ComfyUI server address in the add-on preferences:

Update Server Address

Usage

For complete details about the various features, refer to the DOCUMENTATION.

In a nutshell:

  1. In ComfyUI, create a workflow using the Blender nodes (see workflow examples in this repository).

    • The Blender nodes are used to define the inputs and outputs to be displayed in the Blender add-on.
    • The title of the nodes are used as labels in the Blender add-on panel.

Screenshot ComfyUI

  1. Run the workflow to confirm it executes properly.

  2. Export the workflow JSON file in API format: Top Left Menu > File > Export (API).

  3. In Blender, import the workflow JSON file (make sure it is in API format): Press N > ComfyUI > Import Workflow.

  4. Update the inputs and click on Run Workflow.

Credits

Thank you to Seth A. Robinson for open-sourcing his code to convert ComfyUI workflows to API format: comfyui-workflow-to-api-converter-endpoint.

Thank you to Gerold Meisinger for open-sourcing his code to inspect values from a combo box widget: https://github.com/geroldmeisinger/ComfyUI-outputlists-combiner.