diff --git a/README.md b/README.md index 56710ef..5c4f89c 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,9 @@ The Blender add-on UI is automatically composed according to the input and outpu ### ComfyUI Setup -Download and install ComfyUI (if you are new to ComfyUI, refer to the original [ComfyUI](https://github.com/comfyanonymous/ComfyUI) repository to get started). **Make sure you have the latest version.** +Download and install ComfyUI. If you are new to ComfyUI, refer to the original [repository](https://github.com/comfyanonymous/ComfyUI) to get started. **Make sure you have the latest version.** -At the time of writing this, the latest version was ComfyUI `v0.3.57`. That version required to update some of the ComfyUI-Blender nodes to the custom node schema v3. Making them incompatible with earlier versions of ComfyUI. +At the time of writing this, the latest version was ComfyUI `v0.3.57`. 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](https://github.com/Comfy-Org/ComfyUI-Manager) or by cloning this repository in the custom nodes folder of ComfyUI: diff --git a/example_workflows/Flux Depth LoRA.json b/example_workflows/Flux Depth LoRA.json index 82346c4..460069e 100644 --- a/example_workflows/Flux Depth LoRA.json +++ b/example_workflows/Flux Depth LoRA.json @@ -4,52 +4,6 @@ "last_node_id": 17, "last_link_id": 19, "nodes": [ - { - "id": 1, - "type": "BlenderInputStringMultiline", - "pos": [ - 260, - 940 - ], - "size": [ - 340, - 360 - ], - "flags": {}, - "order": 0, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 3 - ] - } - ], - "title": "Prompt", - "properties": { - "Node name for S&R": "BlenderInputStringMultiline", - "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" - }, - "widgets_values": [ - "A blockbuster sci-fi movie crafted with cutting-edge VFX, showcasing hyper-detailed realistic visuals. Vibrant accents glow against dark, immersive settings with sweeping, dynamic camera work. The style is sleek, epic, and intensely cinematic. Tiny and cute dragon with rainbow color scales, looking adorable and playful. The environment is vibrant and dark, filled with towering trees and ominous flowers. The mood is eerie and dreadful, as the dragon wink with its eye", - 3, - "", - false - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 2, "type": "DualCLIPLoader", @@ -62,7 +16,7 @@ 130 ], "flags": {}, - "order": 1, + "order": 0, "mode": 0, "inputs": [], "outputs": [ @@ -99,7 +53,7 @@ 88 ], "flags": {}, - "order": 9, + "order": 8, "mode": 0, "inputs": [ { @@ -138,7 +92,7 @@ 88 ], "flags": {}, - "order": 8, + "order": 9, "mode": 0, "inputs": [ { @@ -185,7 +139,7 @@ 154 ], "flags": {}, - "order": 2, + "order": 1, "mode": 0, "inputs": [ { @@ -206,9 +160,9 @@ ], "title": "Depth Strength", "properties": { - "Node name for S&R": "BlenderInputFloat", "cnr_id": "comfyui-blender", - "ver": "e5f69ef0b1450e0e1c96ba3156ed690fd8e7f9da" + "ver": "e5f69ef0b1450e0e1c96ba3156ed690fd8e7f9da", + "Node name for S&R": "BlenderInputFloat" }, "widgets_values": [ 0.7500000000000001, @@ -271,7 +225,7 @@ 58 ], "flags": {}, - "order": 3, + "order": 2, "mode": 0, "inputs": [], "outputs": [ @@ -419,7 +373,7 @@ 180 ], "flags": {}, - "order": 4, + "order": 3, "mode": 0, "inputs": [ { @@ -440,9 +394,9 @@ ], "title": "Seed", "properties": { - "Node name for S&R": "BlenderInputSeed", "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputSeed" }, "widgets_values": [ 0, @@ -589,9 +543,9 @@ "outputs": [], "title": "Save Image", "properties": { - "Node name for S&R": "BlenderOutputSaveImage", "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderOutputSaveImage" }, "widgets_values": [ "blender" @@ -599,63 +553,19 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 17, - "type": "BlenderInputLoadDiffusionModel", - "pos": [ - 720, - 300 - ], - "size": [ - 318.3423767089844, - 130 - ], - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "MODEL", - "type": "MODEL", - "links": [ - 19 - ] - } - ], - "title": "Model", - "properties": { - "Node name for S&R": "BlenderInputLoadDiffusionModel" - }, - "widgets_values": [ - "visitor01\\rayflux-v1.0.safetensors", - "default", - 2, - "visitor01\\rayflux-v1.0.safetensors" - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 16, "type": "MarkdownNote", "pos": [ - 350, - 420 + 330, + 370 ], "size": [ 340, - 240 + 300 ], "flags": {}, - "order": 6, + "order": 4, "mode": 0, "inputs": [], "outputs": [], @@ -678,7 +588,7 @@ 350 ], "flags": {}, - "order": 7, + "order": 5, "mode": 0, "inputs": [ { @@ -704,17 +614,109 @@ ], "title": "Depth Map", "properties": { - "Node name for S&R": "BlenderInputLoadImage", "cnr_id": "comfyui-blender", - "ver": "e5f69ef0b1450e0e1c96ba3156ed690fd8e7f9da" + "ver": "e5f69ef0b1450e0e1c96ba3156ed690fd8e7f9da", + "Node name for S&R": "BlenderInputLoadImage" }, "widgets_values": [ - "depth_map.png", + "blender_depth_map0001.png", 4, "image" ], "color": "#432", "bgcolor": "#653" + }, + { + "id": 1, + "type": "BlenderInputStringMultiline", + "pos": [ + 260, + 940 + ], + "size": [ + 340, + 220 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 3 + ] + } + ], + "title": "Prompt", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputStringMultiline" + }, + "widgets_values": [ + "Photograph of an ancient treasure chest on a black background. The chest is made of rich, vintage antique wood sculpted with floral patterns, with brass and iron fittings. The brass lock and hinges are tarnished with age, adding to its mysterious and timeless appeal. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", + 3, + "", + false + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 17, + "type": "BlenderInputLoadDiffusionModel", + "pos": [ + 720, + 300 + ], + "size": [ + 318.3423767089844, + 130 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 19 + ] + } + ], + "title": "Model", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "bff2443c331d37c7ee05b6c1ff43cd21644e7175", + "Node name for S&R": "BlenderInputLoadDiffusionModel" + }, + "widgets_values": [ + "visitor01\\rayflux-v1.0.safetensors", + "default", + 2, + "visitor01\\rayflux-v1.0.safetensors" + ], + "color": "#432", + "bgcolor": "#653" } ], "links": [ @@ -867,13 +869,13 @@ "config": {}, "extra": { "ds": { - "scale": 0.6696902654867255, + "scale": 0.810325221238938, "offset": [ - 217.2084572183681, - -68.68021143045917 + -42.51442253874927, + -227.70278239644864 ] }, - "frontendVersion": "1.25.10", + "frontendVersion": "1.26.13", "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, diff --git a/example_workflows/Flux Depth LoRA.json.api b/example_workflows/Flux Depth LoRA.json.api index 71a6ab4..c4ebc7e 100644 --- a/example_workflows/Flux Depth LoRA.json.api +++ b/example_workflows/Flux Depth LoRA.json.api @@ -1,7 +1,7 @@ { "1": { "inputs": { - "value": "A blockbuster sci-fi movie crafted with cutting-edge VFX, showcasing hyper-detailed realistic visuals. Vibrant accents glow against dark, immersive settings with sweeping, dynamic camera work. The style is sleek, epic, and intensely cinematic. Tiny and cute dragon with rainbow color scales, looking adorable and playful. The environment is vibrant and dark, filled with towering trees and ominous flowers. The mood is eerie and dreadful, as the dragon wink with its eye", + "value": "Photograph of an ancient treasure chest on a black background. The chest is made of rich, vintage antique wood sculpted with floral patterns, with brass and iron fittings. The brass lock and hinges are tarnished with age, adding to its mysterious and timeless appeal. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", "order": 3, "default": "", "format_path": false @@ -89,7 +89,7 @@ }, "8": { "inputs": { - "image": "depth_map.png", + "image": "blender_depth_map0001.png", "order": 4 }, "class_type": "BlenderInputLoadImage", diff --git a/example_workflows/Hunyuan3D v2.json b/example_workflows/Hunyuan3D v2.json index 8f89185..9631b7d 100644 --- a/example_workflows/Hunyuan3D v2.json +++ b/example_workflows/Hunyuan3D v2.json @@ -4,72 +4,6 @@ "last_node_id": 19, "last_link_id": 24, "nodes": [ - { - "id": 1, - "type": "MarkdownNote", - "pos": [ - -500.4363098144531, - 185.2362518310547 - ], - "size": [ - 340, - 230 - ], - "flags": {}, - "order": 0, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "# ComfyUI-Blender\n\nThis is an example of workflow to showcase how to use the Blender input and output custom nodes. The custom nodes will be interpreted by the Blender add-on to display the corresponding properties in the add-on panel.\n\n(1) Add input or output nodes: right click > Add Node > blender > ...\n\n(2) Export the workflow: Workflow > Export (API)\n\n(3) In the Blender add-on, clik on Import Workflow to import the workflow JSON file in API format\n\nMore info on: [https://github.com/alexisrolland/ComfyUI-Blender](https://github.com/alexisrolland/ComfyUI-Blender)" - ], - "color": "#432", - "bgcolor": "#653" - }, - { - "id": 3, - "type": "BlenderInputLoadImage", - "pos": [ - -430, - 490 - ], - "size": [ - 270, - 338.0000305175781 - ], - "flags": {}, - "order": 1, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 19 - ] - }, - { - "name": "MASK", - "type": "MASK", - "links": null - } - ], - "title": "Image", - "properties": { - "cnr_id": "comfyui-blender", - "ver": "98ea952ed9c3cd1960eacfcd7b155e001e29c5c9", - "Node name for S&R": "BlenderInputLoadImage" - }, - "widgets_values": [ - "example.png", - 2, - "image" - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 4, "type": "ModelSamplingAuraFlow", @@ -82,7 +16,7 @@ 60 ], "flags": {}, - "order": 10, + "order": 9, "mode": 0, "inputs": [ { @@ -172,7 +106,7 @@ 82 ], "flags": {}, - "order": 2, + "order": 0, "mode": 0, "inputs": [], "outputs": [ @@ -314,7 +248,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 204712058848371, + 906688555071748, "randomize", 20, 8, @@ -440,9 +374,16 @@ 154 ], "flags": {}, - "order": 3, + "order": 1, "mode": 0, - "inputs": [], + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], "outputs": [ { "name": "FLOAT", @@ -480,9 +421,16 @@ 210 ], "flags": {}, - "order": 4, + "order": 2, "mode": 0, - "inputs": [], + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], "outputs": [ { "name": "*", @@ -520,9 +468,16 @@ 160 ], "flags": {}, - "order": 5, + "order": 3, "mode": 0, - "inputs": [], + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], "outputs": [ { "name": "FLOAT", @@ -560,7 +515,7 @@ 302 ], "flags": {}, - "order": 9, + "order": 10, "mode": 0, "inputs": [ { @@ -628,7 +583,7 @@ 82 ], "flags": {}, - "order": 6, + "order": 4, "mode": 0, "inputs": [], "outputs": [ @@ -664,7 +619,7 @@ 98 ], "flags": {}, - "order": 7, + "order": 5, "mode": 0, "inputs": [], "outputs": [ @@ -724,9 +679,16 @@ 178 ], "flags": {}, - "order": 8, + "order": 6, "mode": 0, - "inputs": [], + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], "outputs": [ { "name": "INT", @@ -786,6 +748,79 @@ ], "color": "#432", "bgcolor": "#653" + }, + { + "id": 1, + "type": "MarkdownNote", + "pos": [ + -500, + 140 + ], + "size": [ + 340, + 280 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "# ComfyUI-Blender\n\nThis is an example of workflow to showcase how to use the Blender input and output custom nodes. The custom nodes will be interpreted by the Blender add-on to display the corresponding properties in the add-on panel.\n\n(1) Add input or output nodes: right click > Add Node > blender > ...\n\n(2) Export the workflow: Workflow > Export (API)\n\n(3) In the Blender add-on, clik on Import Workflow to import the workflow JSON file in API format\n\nMore info on: [https://github.com/alexisrolland/ComfyUI-Blender](https://github.com/alexisrolland/ComfyUI-Blender)" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 3, + "type": "BlenderInputLoadImage", + "pos": [ + -430, + 490 + ], + "size": [ + 270, + 338.0000305175781 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 19 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Image", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "98ea952ed9c3cd1960eacfcd7b155e001e29c5c9", + "Node name for S&R": "BlenderInputLoadImage" + }, + "widgets_values": [ + "blender_00001_.png", + 2, + "image" + ], + "color": "#432", + "bgcolor": "#653" } ], "links": [ @@ -938,13 +973,17 @@ "config": {}, "extra": { "ds": { - "scale": 0.6951137299943237, + "scale": 0.6319215727221125, "offset": [ - 539.2904986588472, - 203.82201275199412 + 600, + -40 ] }, - "frontendVersion": "1.23.4" + "frontendVersion": "1.26.13", + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true }, "version": 0.4 } \ No newline at end of file diff --git a/example_workflows/Hunyuan3D v2.json.api b/example_workflows/Hunyuan3D v2.json.api index e05c4a2..78a145e 100644 --- a/example_workflows/Hunyuan3D v2.json.api +++ b/example_workflows/Hunyuan3D v2.json.api @@ -10,7 +10,7 @@ }, "3": { "inputs": { - "image": "example.png", + "image": "blender_00001_.png", "order": 2 }, "class_type": "BlenderInputLoadImage", diff --git a/example_workflows/Qwen Image ControlNet.json b/example_workflows/Qwen Image ControlNet.json index a89f80c..52e97e2 100644 --- a/example_workflows/Qwen Image ControlNet.json +++ b/example_workflows/Qwen Image ControlNet.json @@ -50,7 +50,7 @@ 88 ], "flags": {}, - "order": 10, + "order": 12, "mode": 0, "inputs": [ { @@ -133,7 +133,7 @@ 26 ], "flags": {}, - "order": 16, + "order": 17, "mode": 0, "inputs": [ { @@ -158,52 +158,6 @@ }, "widgets_values": [] }, - { - "id": 21, - "type": "BlenderInputStringMultiline", - "pos": [ - 1880, - 1190 - ], - "size": [ - 270, - 360 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 2 - ] - } - ], - "title": "Prompt", - "properties": { - "Node name for S&R": "BlenderInputStringMultiline", - "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" - }, - "widgets_values": [ - "photograph of a wooden treasure chest made of oak on a black background, featuring ultra-detailed textures and material for physically based rendering. The item is showcased with state-of-the-art shaders, realistic lighting, and intricate details that emphasize depth and material quality. The style is hyper-realistic, immersive, and visually stunning, capturing the essence of next-gen gaming 3D graphics.", - 2, - "", - false - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 8, "type": "BlenderInputInt", @@ -216,7 +170,7 @@ 226 ], "flags": {}, - "order": 13, + "order": 10, "mode": 0, "inputs": [ { @@ -237,9 +191,9 @@ ], "title": "Width", "properties": { - "Node name for S&R": "BlenderInputInt", "cnr_id": "comfyui-blender", - "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01" + "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01", + "Node name for S&R": "BlenderInputInt" }, "widgets_values": [ 1328, @@ -266,7 +220,7 @@ 226 ], "flags": {}, - "order": 14, + "order": 11, "mode": 0, "inputs": [ { @@ -287,9 +241,9 @@ ], "title": "Height", "properties": { - "Node name for S&R": "BlenderInputInt", "cnr_id": "comfyui-blender", - "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01" + "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01", + "Node name for S&R": "BlenderInputInt" }, "widgets_values": [ 1328, @@ -304,93 +258,6 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 12, - "type": "BlenderInputSeed", - "pos": [ - 2180, - 2170 - ], - "size": [ - 210, - 180 - ], - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "INT", - "type": "INT", - "links": [ - 24 - ] - } - ], - "title": "Seed", - "properties": { - "Node name for S&R": "BlenderInputSeed", - "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" - }, - "widgets_values": [ - 0, - 1, - 0, - 0, - 2147483647, - 1 - ], - "color": "#432", - "bgcolor": "#653" - }, - { - "id": 14, - "type": "BlenderInputGroup", - "pos": [ - 1880, - 1620 - ], - "size": [ - 270, - 106 - ], - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "group", - "type": "GROUP", - "links": [ - 15, - 18 - ] - } - ], - "title": "ControlNet", - "properties": { - "Node name for S&R": "BlenderInputGroup", - "cnr_id": "comfyui-blender", - "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01" - }, - "widgets_values": [ - 4, - true, - false - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 10, "type": "BlenderInputGroup", @@ -403,7 +270,7 @@ 106 ], "flags": {}, - "order": 5, + "order": 2, "mode": 0, "inputs": [], "outputs": [ @@ -418,9 +285,9 @@ ], "title": "Resolution", "properties": { - "Node name for S&R": "BlenderInputGroup", "cnr_id": "comfyui-blender", - "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01" + "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01", + "Node name for S&R": "BlenderInputGroup" }, "widgets_values": [ 3, @@ -519,7 +386,7 @@ 154 ], "flags": {}, - "order": 11, + "order": 13, "mode": 0, "inputs": [ { @@ -540,9 +407,9 @@ ], "title": "Strength", "properties": { - "Node name for S&R": "BlenderInputFloat", "cnr_id": "comfyui-blender", - "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01" + "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01", + "Node name for S&R": "BlenderInputFloat" }, "widgets_values": [ 1, @@ -563,10 +430,10 @@ ], "size": [ 210, - 106 + 146 ], "flags": {}, - "order": 17, + "order": 16, "mode": 0, "inputs": [ { @@ -593,6 +460,16 @@ "links": [ 23 ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null } ], "properties": { @@ -606,29 +483,6 @@ 1 ] }, - { - "id": 13, - "type": "MarkdownNote", - "pos": [ - 1475.416259765625, - 876.527587890625 - ], - "size": [ - 340, - 310 - ], - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "# ComfyUI-Blender\n\nThis is an example of workflow to showcase how to use the Blender input and output custom nodes. The custom nodes will be interpreted by the Blender add-on to display the corresponding properties in the add-on panel.\n\n(1) Add input or output nodes: right click > Add Node > blender > ...\n\n(2) Run the workflow to confirm it executes properly\n\n(3) Export the workflow: Top Left Menu > File > Export (API)\n\n(4) In the Blender add-on, clik on Import Workflow to import the workflow JSON file in API format\n\nMore info on: [https://github.com/alexisrolland/ComfyUI-Blender](https://github.com/alexisrolland/ComfyUI-Blender)" - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 22, "type": "VAEDecode", @@ -770,7 +624,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 767770585844765, + 563079312899009, "randomize", 4, 1, @@ -791,7 +645,7 @@ 58 ], "flags": {}, - "order": 7, + "order": 3, "mode": 0, "inputs": [], "outputs": [ @@ -825,7 +679,7 @@ 58 ], "flags": {}, - "order": 8, + "order": 4, "mode": 0, "inputs": [], "outputs": [ @@ -909,9 +763,9 @@ "outputs": [], "title": "Save Image", "properties": { - "Node name for S&R": "BlenderOutputSaveImage", "cnr_id": "comfyui-blender", - "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01" + "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01", + "Node name for S&R": "BlenderOutputSaveImage" }, "widgets_values": [ "blender" @@ -919,6 +773,52 @@ "color": "#432", "bgcolor": "#653" }, + { + "id": 21, + "type": "BlenderInputStringMultiline", + "pos": [ + 1880, + 1190 + ], + "size": [ + 270, + 250 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 2 + ] + } + ], + "title": "Prompt", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputStringMultiline" + }, + "widgets_values": [ + "Photograph of an ancient treasure chest on a black background. The chest is made of rich, vintage antique wood sculpted with floral patterns, with brass and iron fittings. The brass lock and hinges are tarnished with age, adding to its mysterious and timeless appeal. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", + 2, + "", + false + ], + "color": "#432", + "bgcolor": "#653" + }, { "id": 18, "type": "BlenderInputLoadImage", @@ -931,7 +831,7 @@ 350 ], "flags": {}, - "order": 12, + "order": 14, "mode": 0, "inputs": [ { @@ -957,17 +857,127 @@ ], "title": "Image", "properties": { - "Node name for S&R": "BlenderInputLoadImage", "cnr_id": "comfyui-blender", - "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01" + "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01", + "Node name for S&R": "BlenderInputLoadImage" }, "widgets_values": [ - "example.png", + "blender_depth_map0001.png", 2, "image" ], "color": "#432", "bgcolor": "#653" + }, + { + "id": 12, + "type": "BlenderInputSeed", + "pos": [ + 2180, + 2210 + ], + "size": [ + 210, + 180 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 24 + ] + } + ], + "title": "Seed", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputSeed" + }, + "widgets_values": [ + 0, + 1, + 0, + 0, + 2147483647, + 1 + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 14, + "type": "BlenderInputGroup", + "pos": [ + 1880, + 1520 + ], + "size": [ + 270, + 106 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "group", + "type": "GROUP", + "links": [ + 15, + 18 + ] + } + ], + "title": "ControlNet", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "0b3fa1a4f6a90b1bc7913ba415144d4676e48f01", + "Node name for S&R": "BlenderInputGroup" + }, + "widgets_values": [ + 4, + true, + false + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 13, + "type": "MarkdownNote", + "pos": [ + 1475.416259765625, + 876.527587890625 + ], + "size": [ + 340, + 310 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "# ComfyUI-Blender\n\nThis is an example of workflow to showcase how to use the Blender input and output custom nodes. The custom nodes will be interpreted by the Blender add-on to display the corresponding properties in the add-on panel.\n\n(1) Add input or output nodes: right click > Add Node > blender > ...\n\n(2) Run the workflow to confirm it executes properly\n\n(3) Export the workflow: Top Left Menu > File > Export (API)\n\n(4) In the Blender add-on, clik on Import Workflow to import the workflow JSON file in API format\n\nMore info on: [https://github.com/alexisrolland/ComfyUI-Blender](https://github.com/alexisrolland/ComfyUI-Blender)" + ], + "color": "#432", + "bgcolor": "#653" } ], "links": [ @@ -1176,13 +1186,17 @@ "config": {}, "extra": { "ds": { - "scale": 0.7627768444385838, + "scale": 0.6934334949441673, "offset": [ - -1140.4534680186794, - -678.9011268150401 + -1375.416259765625, + -776.527587890625 ] }, - "frontendVersion": "1.26.13" + "frontendVersion": "1.26.13", + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true }, "version": 0.4 } \ No newline at end of file diff --git a/example_workflows/Qwen Image Edit 2509 Nunchaku.json b/example_workflows/Qwen Image Edit 2509 Nunchaku.json index 3ed8281..231d9bd 100644 --- a/example_workflows/Qwen Image Edit 2509 Nunchaku.json +++ b/example_workflows/Qwen Image Edit 2509 Nunchaku.json @@ -1,7 +1,7 @@ { "id": "4e0ae283-746c-4c0d-82fa-56e367c4865d", "revision": 0, - "last_node_id": 19, + "last_node_id": 20, "last_link_id": 26, "nodes": [ { @@ -93,7 +93,7 @@ 58 ], "flags": {}, - "order": 12, + "order": 13, "mode": 0, "inputs": [ { @@ -242,7 +242,7 @@ 200 ], "flags": {}, - "order": 8, + "order": 12, "mode": 0, "inputs": [ { @@ -352,7 +352,7 @@ 58 ], "flags": {}, - "order": 7, + "order": 8, "mode": 0, "inputs": [ { @@ -426,7 +426,7 @@ 262 ], "flags": {}, - "order": 16, + "order": 17, "mode": 0, "inputs": [ { @@ -494,7 +494,7 @@ 46 ], "flags": {}, - "order": 17, + "order": 18, "mode": 0, "inputs": [ { @@ -536,7 +536,7 @@ 270 ], "flags": {}, - "order": 18, + "order": 19, "mode": 0, "inputs": [ { @@ -613,7 +613,7 @@ 26 ], "flags": {}, - "order": 13, + "order": 16, "mode": 0, "inputs": [ { @@ -640,52 +640,6 @@ "color": "#322", "bgcolor": "#533" }, - { - "id": 13, - "type": "BlenderInputStringMultiline", - "pos": [ - -940, - 360 - ], - "size": [ - 400, - 290 - ], - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 15 - ] - } - ], - "title": "Prompt", - "properties": { - "cnr_id": "comfyui-blender", - "ver": "841b749d5ea53dca4865b3c80b36558a2b8f7be5", - "Node name for S&R": "BlenderInputStringMultiline" - }, - "widgets_values": [ - "Photograph of an ancient treasure chest on a black background. The chest is made of rich, vintage antique wood sculpted with floral patterns, with brass and iron fittings. The brass lock and hinges are tarnished with age, adding to its mysterious and timeless appeal. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", - 2, - "", - false - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 16, "type": "BlenderInputInt", @@ -798,7 +752,7 @@ 106 ], "flags": {}, - "order": 5, + "order": 4, "mode": 0, "inputs": [], "outputs": [ @@ -837,7 +791,7 @@ 330 ], "flags": {}, - "order": 6, + "order": 5, "mode": 0, "inputs": [ { @@ -869,6 +823,75 @@ ], "color": "#432", "bgcolor": "#653" + }, + { + "id": 20, + "type": "MarkdownNote", + "pos": [ + -1190, + -10 + ], + "size": [ + 340, + 300 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "# ComfyUI-Blender\n\nThis is an example of workflow to showcase how to use the Blender input and output custom nodes. The custom nodes will be interpreted by the Blender add-on to display the corresponding properties in the add-on panel.\n\n(1) Add input or output nodes: right click > Add Node > blender > ...\n\n(2) Run the workflow to confirm it executes properly\n\n(3) Export the workflow: Top Left Menu > File > Export (API)\n\n(4) In the Blender add-on, clik on Import Workflow to import the workflow JSON file in API format\n\nMore info on: [https://github.com/alexisrolland/ComfyUI-Blender](https://github.com/alexisrolland/ComfyUI-Blender)" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 13, + "type": "BlenderInputStringMultiline", + "pos": [ + -940, + 360 + ], + "size": [ + 400, + 220 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 15 + ] + } + ], + "title": "Prompt", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "841b749d5ea53dca4865b3c80b36558a2b8f7be5", + "Node name for S&R": "BlenderInputStringMultiline" + }, + "widgets_values": [ + "Photograph of an ancient treasure chest on a black background. The chest is made of rich, vintage antique wood sculpted with floral patterns, with brass and iron fittings. The brass lock and hinges are tarnished with age, adding to its mysterious and timeless appeal. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", + 2, + "", + false + ], + "color": "#432", + "bgcolor": "#653" } ], "links": [ diff --git a/example_workflows/Qwen Image Inpainting.json b/example_workflows/Qwen Image Inpainting.json index 56cfcdc..e0087be 100644 --- a/example_workflows/Qwen Image Inpainting.json +++ b/example_workflows/Qwen Image Inpainting.json @@ -52,7 +52,7 @@ 88 ], "flags": {}, - "order": 10, + "order": 12, "mode": 0, "inputs": [ { @@ -130,52 +130,6 @@ "color": "#322", "bgcolor": "#533" }, - { - "id": 5, - "type": "BlenderInputStringMultiline", - "pos": [ - 200, - 600 - ], - "size": [ - 400, - 200 - ], - "flags": {}, - "order": 1, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 4 - ] - } - ], - "title": "Prompt", - "properties": { - "cnr_id": "comfyui-blender", - "ver": "841b749d5ea53dca4865b3c80b36558a2b8f7be5", - "Node name for S&R": "BlenderInputStringMultiline" - }, - "widgets_values": [ - "", - 2, - "", - false - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 13, "type": "VAEEncode", @@ -188,7 +142,7 @@ 46 ], "flags": {}, - "order": 12, + "order": 11, "mode": 0, "inputs": [ { @@ -230,7 +184,7 @@ 206 ], "flags": {}, - "order": 13, + "order": 15, "mode": 0, "inputs": [ { @@ -303,7 +257,7 @@ 46 ], "flags": {}, - "order": 15, + "order": 14, "mode": 0, "inputs": [ { @@ -345,7 +299,7 @@ 58 ], "flags": {}, - "order": 14, + "order": 13, "mode": 0, "inputs": [ { @@ -372,53 +326,6 @@ 3.1 ] }, - { - "id": 11, - "type": "BlenderInputLoadImage", - "pos": [ - 620, - 1020 - ], - "size": [ - 270, - 318 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 10, - 12, - 23 - ] - } - ], - "title": "Image", - "properties": { - "cnr_id": "comfyui-blender", - "ver": "841b749d5ea53dca4865b3c80b36558a2b8f7be5", - "Node name for S&R": "BlenderInputLoadImage" - }, - "widgets_values": [ - "example.png", - 3, - "image" - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 17, "type": "VAEDecode", @@ -461,53 +368,6 @@ }, "widgets_values": [] }, - { - "id": 12, - "type": "BlenderInputLoadMask", - "pos": [ - 620, - 1410 - ], - "size": [ - 270, - 318 - ], - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": [ - 11, - 15, - 25 - ] - } - ], - "title": "Mask", - "properties": { - "cnr_id": "comfyui-blender", - "ver": "841b749d5ea53dca4865b3c80b36558a2b8f7be5", - "Node name for S&R": "BlenderInputLoadMask" - }, - "widgets_values": [ - "example.png", - 4, - "image" - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 18, "type": "ImageCompositeMasked", @@ -653,7 +513,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 377863748761423, + 545561501849491, "randomize", 4, 1, @@ -674,7 +534,7 @@ 178 ], "flags": {}, - "order": 4, + "order": 1, "mode": 0, "inputs": [ { @@ -722,7 +582,7 @@ 82 ], "flags": {}, - "order": 5, + "order": 2, "mode": 0, "inputs": [], "outputs": [ @@ -756,7 +616,7 @@ 82 ], "flags": {}, - "order": 11, + "order": 10, "mode": 0, "inputs": [ { @@ -796,7 +656,7 @@ 60 ], "flags": {}, - "order": 6, + "order": 3, "mode": 0, "inputs": [], "outputs": [ @@ -829,7 +689,7 @@ 300 ], "flags": {}, - "order": 7, + "order": 4, "mode": 0, "inputs": [], "outputs": [], @@ -852,7 +712,7 @@ 60 ], "flags": {}, - "order": 8, + "order": 5, "mode": 0, "inputs": [], "outputs": [ @@ -874,6 +734,146 @@ "widgets_values": [ "alibaba\\qwen_image_vae.safetensors" ] + }, + { + "id": 11, + "type": "BlenderInputLoadImage", + "pos": [ + 620, + 1020 + ], + "size": [ + 270, + 318 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 10, + 12, + 23 + ] + } + ], + "title": "Image", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "841b749d5ea53dca4865b3c80b36558a2b8f7be5", + "Node name for S&R": "BlenderInputLoadImage" + }, + "widgets_values": [ + "blender_00001_.png", + 3, + "image" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 12, + "type": "BlenderInputLoadMask", + "pos": [ + 620, + 1410 + ], + "size": [ + 270, + 318 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 11, + 15, + 25 + ] + } + ], + "title": "Mask", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "841b749d5ea53dca4865b3c80b36558a2b8f7be5", + "Node name for S&R": "BlenderInputLoadMask" + }, + "widgets_values": [ + "blender_input.png", + 4, + "image" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 5, + "type": "BlenderInputStringMultiline", + "pos": [ + 200, + 600 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 4 + ] + } + ], + "title": "Prompt", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "841b749d5ea53dca4865b3c80b36558a2b8f7be5", + "Node name for S&R": "BlenderInputStringMultiline" + }, + "widgets_values": [ + "Photograph of an ancient treasure chest on a black background. The chest is opened and golden light is diffusing gentles light ray up. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", + 2, + "", + false + ], + "color": "#432", + "bgcolor": "#653" } ], "links": [ @@ -1090,13 +1090,13 @@ "config": {}, "extra": { "ds": { - "scale": 0.6935182111122045, + "scale": 0.5731555463737229, "offset": [ - 893.6034665192017, - -151.79549394330837 + 140, + -110 ] }, - "frontendVersion": "1.27.7", + "frontendVersion": "1.26.13", "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, diff --git a/example_workflows/Qwen Image Inpainting.json.api b/example_workflows/Qwen Image Inpainting.json.api index a93823d..e9099d3 100644 --- a/example_workflows/Qwen Image Inpainting.json.api +++ b/example_workflows/Qwen Image Inpainting.json.api @@ -49,7 +49,7 @@ }, "5": { "inputs": { - "value": "", + "value": "Photograph of an ancient treasure chest on a black background. The chest is opened and golden light is diffusing gentles light ray up. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", "order": 2, "default": "", "format_path": false @@ -143,7 +143,7 @@ }, "11": { "inputs": { - "image": "example.png", + "image": "blender_00001_.png", "order": 3 }, "class_type": "BlenderInputLoadImage", @@ -153,7 +153,7 @@ }, "12": { "inputs": { - "image": "example.png", + "image": "blender_input.png", "order": 4 }, "class_type": "BlenderInputLoadMask", diff --git a/example_workflows/SDXL ControlNet.json b/example_workflows/SDXL ControlNet.json index 9afd4f9..fcc0016 100644 --- a/example_workflows/SDXL ControlNet.json +++ b/example_workflows/SDXL ControlNet.json @@ -4,52 +4,6 @@ "last_node_id": 18, "last_link_id": 26, "nodes": [ - { - "id": 1, - "type": "BlenderInputStringMultiline", - "pos": [ - 561.435546875, - 606.3355102539062 - ], - "size": [ - 340, - 326 - ], - "flags": {}, - "order": 0, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 3 - ] - } - ], - "title": "Prompt", - "properties": { - "Node name for S&R": "BlenderInputStringMultiline", - "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" - }, - "widgets_values": [ - "A blockbuster sci-fi movie crafted with cutting-edge VFX, showcasing hyper-detailed realistic visuals. Vibrant accents glow against dark, immersive settings with sweeping, dynamic camera work. The style is sleek, epic, and intensely cinematic. Tiny and cute dragon with rainbow color scales, looking adorable and playful. The environment is vibrant and dark, filled with towering trees and ominous flowers. The mood is eerie and dreadful, as the dragon wink with its eye", - 3, - "", - false - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 3, "type": "BlenderInputGroup", @@ -62,7 +16,7 @@ 106 ], "flags": {}, - "order": 1, + "order": 0, "mode": 0, "inputs": [], "outputs": [ @@ -77,6 +31,8 @@ ], "title": "Resolution", "properties": { + "cnr_id": "comfyui-blender", + "ver": "bff2443c331d37c7ee05b6c1ff43cd21644e7175", "Node name for S&R": "BlenderInputGroup" }, "widgets_values": [ @@ -120,9 +76,9 @@ ], "title": "Width", "properties": { - "Node name for S&R": "BlenderInputInt", "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputInt" }, "widgets_values": [ 1024, @@ -170,9 +126,9 @@ ], "title": "Height", "properties": { - "Node name for S&R": "BlenderInputInt", "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputInt" }, "widgets_values": [ 1024, @@ -199,7 +155,7 @@ 88 ], "flags": {}, - "order": 10, + "order": 11, "mode": 0, "inputs": [ { @@ -246,7 +202,7 @@ 88 ], "flags": {}, - "order": 11, + "order": 10, "mode": 0, "inputs": [ { @@ -339,9 +295,9 @@ "outputs": [], "title": "Save Image", "properties": { - "Node name for S&R": "BlenderOutputSaveImage", "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderOutputSaveImage" }, "widgets_values": [ "blender" @@ -417,58 +373,6 @@ 1 ] }, - { - "id": 11, - "type": "EmptyLatentImage", - "pos": [ - 1210, - 1280 - ], - "size": [ - 260, - 106 - ], - "flags": {}, - "order": 12, - "mode": 0, - "inputs": [ - { - "name": "width", - "type": "INT", - "widget": { - "name": "width" - }, - "link": 20 - }, - { - "name": "height", - "type": "INT", - "widget": { - "name": "height" - }, - "link": 21 - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 8 - ] - } - ], - "properties": { - "cnr_id": "comfy-core", - "ver": "0.3.42", - "Node name for S&R": "EmptyLatentImage" - }, - "widgets_values": [ - 512, - 512, - 1 - ] - }, { "id": 12, "type": "ControlNetApplyAdvanced", @@ -546,54 +450,6 @@ 1 ] }, - { - "id": 13, - "type": "BlenderInputSeed", - "pos": [ - 1210, - 1460 - ], - "size": [ - 260, - 180 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "group", - "shape": 7, - "type": "GROUP", - "link": null - } - ], - "outputs": [ - { - "name": "INT", - "type": "INT", - "links": [ - 9 - ] - } - ], - "title": "Seed", - "properties": { - "Node name for S&R": "BlenderInputSeed", - "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" - }, - "widgets_values": [ - 0, - 1, - 0, - 1, - 2147483647, - 1 - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 14, "type": "ControlNetLoader", @@ -606,7 +462,7 @@ 58 ], "flags": {}, - "order": 3, + "order": 1, "mode": 0, "inputs": [], "outputs": [ @@ -627,6 +483,114 @@ "xinsir\\controlnet-union-sdxl-1.0-promax.safetensors" ] }, + { + "id": 16, + "type": "BlenderInputFloat", + "pos": [ + 940, + 1750 + ], + "size": [ + 210, + 154 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "FLOAT", + "type": "FLOAT", + "links": [ + 14 + ] + } + ], + "title": "ControlNet Strength", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputFloat" + }, + "widgets_values": [ + 1.0000000000000002, + 7, + 1.0000000000000002, + 0, + 1.0000000000000002 + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 18, + "type": "BlenderInputLoadCheckpoint", + "pos": [ + 610, + 1020 + ], + "size": [ + 292.1470642089844, + 146 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "group", + "shape": 7, + "type": "GROUP", + "link": null + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 22 + ] + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 23, + 24 + ] + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 25, + 26 + ] + } + ], + "title": "Model", + "properties": { + "cnr_id": "comfyui-blender", + "ver": "bff2443c331d37c7ee05b6c1ff43cd21644e7175", + "Node name for S&R": "BlenderInputLoadCheckpoint" + }, + "widgets_values": [ + "visitor01\\raymnants-v3.0.safetensors", + 2, + "visitor01\\raymnants-v3.0.safetensors" + ], + "color": "#432", + "bgcolor": "#653" + }, { "id": 15, "type": "BlenderInputLoadImage", @@ -665,12 +629,12 @@ ], "title": "ControlNet Image", "properties": { - "Node name for S&R": "BlenderInputLoadImage", "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputLoadImage" }, "widgets_values": [ - "depth_map.png", + "blender_depth_map0001.png", 6, "image" ], @@ -678,15 +642,77 @@ "bgcolor": "#653" }, { - "id": 16, - "type": "BlenderInputFloat", + "id": 11, + "type": "EmptyLatentImage", "pos": [ - 940, - 1750 + 1210, + 1270 ], "size": [ - 210, - 154 + 260, + 146 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 20 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 21 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 8 + ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.42", + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 512, + 512, + 1 + ] + }, + { + "id": 13, + "type": "BlenderInputSeed", + "pos": [ + 1210, + 1470 + ], + "size": [ + 260, + 180 ], "flags": {}, "order": 5, @@ -701,66 +727,44 @@ ], "outputs": [ { - "name": "FLOAT", - "type": "FLOAT", + "name": "INT", + "type": "INT", "links": [ - 14 + 9 ] } ], - "title": "ControlNet Strength", + "title": "Seed", "properties": { - "Node name for S&R": "BlenderInputFloat", "cnr_id": "comfyui-blender", - "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6" + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputSeed" }, "widgets_values": [ - 1.0000000000000002, - 7, - 1.0000000000000002, 0, - 1.0000000000000002 + 1, + 0, + 1, + 2147483647, + 1 ], "color": "#432", "bgcolor": "#653" }, { - "id": 17, - "type": "MarkdownNote", + "id": 1, + "type": "BlenderInputStringMultiline", "pos": [ - 180, - 930 + 610, + 720 ], "size": [ - 340, - 240 + 290, + 230 ], "flags": {}, "order": 6, "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "# ComfyUI-Blender\n\nThis is an example of workflow to showcase how to use the Blender input and output custom nodes. The custom nodes will be interpreted by the Blender add-on to display the corresponding properties in the add-on panel.\n\n(1) Add input or output nodes: right click > Add Node > blender > ...\n\n(2) Run the workflow to confirm it executes properly\n\n(3) Export the workflow: Top Left Menu > File > Export (API)\n\n(4) In the Blender add-on, clik on Import Workflow to import the workflow JSON file in API format\n\nMore info on: [https://github.com/alexisrolland/ComfyUI-Blender](https://github.com/alexisrolland/ComfyUI-Blender)" - ], - "color": "#432", - "bgcolor": "#653" - }, - { - "id": 18, - "type": "BlenderInputLoadCheckpoint", - "pos": [ - 610, - 1020 - ], - "size": [ - 292.1470642089844, - 146 - ], - "flags": {}, - "order": 7, - "mode": 0, "inputs": [ { "name": "group", @@ -771,37 +775,47 @@ ], "outputs": [ { - "name": "MODEL", - "type": "MODEL", + "name": "STRING", + "type": "STRING", "links": [ - 22 - ] - }, - { - "name": "CLIP", - "type": "CLIP", - "links": [ - 23, - 24 - ] - }, - { - "name": "VAE", - "type": "VAE", - "links": [ - 25, - 26 + 3 ] } ], - "title": "Model", + "title": "Prompt", "properties": { - "Node name for S&R": "BlenderInputLoadCheckpoint" + "cnr_id": "comfyui-blender", + "ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6", + "Node name for S&R": "BlenderInputStringMultiline" }, "widgets_values": [ - "visitor01\\raymnants-v3.0.safetensors", - 2, - "visitor01\\raymnants-v3.0.safetensors" + "Photograph of an ancient treasure chest on a black background. The chest is made of rich, vintage antique wood sculpted with floral patterns, with brass and iron fittings. The brass lock and hinges are tarnished with age, adding to its mysterious and timeless appeal. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", + 3, + "", + false + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 17, + "type": "MarkdownNote", + "pos": [ + 220, + 940 + ], + "size": [ + 340, + 300 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "# ComfyUI-Blender\n\nThis is an example of workflow to showcase how to use the Blender input and output custom nodes. The custom nodes will be interpreted by the Blender add-on to display the corresponding properties in the add-on panel.\n\n(1) Add input or output nodes: right click > Add Node > blender > ...\n\n(2) Run the workflow to confirm it executes properly\n\n(3) Export the workflow: Top Left Menu > File > Export (API)\n\n(4) In the Blender add-on, clik on Import Workflow to import the workflow JSON file in API format\n\nMore info on: [https://github.com/alexisrolland/ComfyUI-Blender](https://github.com/alexisrolland/ComfyUI-Blender)" ], "color": "#432", "bgcolor": "#653" @@ -981,13 +995,13 @@ "config": {}, "extra": { "ds": { - "scale": 0.9090909090909091, + "scale": 0.6830134553650705, "offset": [ - -120.16403133517088, - -551.9551908182377 + -120, + -620 ] }, - "frontendVersion": "1.25.10", + "frontendVersion": "1.26.13", "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, diff --git a/example_workflows/SDXL ControlNet.json.api b/example_workflows/SDXL ControlNet.json.api index a2b01bc..a783c5b 100644 --- a/example_workflows/SDXL ControlNet.json.api +++ b/example_workflows/SDXL ControlNet.json.api @@ -1,7 +1,7 @@ { "1": { "inputs": { - "value": "A blockbuster sci-fi movie crafted with cutting-edge VFX, showcasing hyper-detailed realistic visuals. Vibrant accents glow against dark, immersive settings with sweeping, dynamic camera work. The style is sleek, epic, and intensely cinematic. Tiny and cute dragon with rainbow color scales, looking adorable and playful. The environment is vibrant and dark, filled with towering trees and ominous flowers. The mood is eerie and dreadful, as the dragon wink with its eye", + "value": "Photograph of an ancient treasure chest on a black background. The chest is made of rich, vintage antique wood sculpted with floral patterns, with brass and iron fittings. The brass lock and hinges are tarnished with age, adding to its mysterious and timeless appeal. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.", "order": 3, "default": "", "format_path": false @@ -229,7 +229,7 @@ }, "15": { "inputs": { - "image": "depth_map.png", + "image": "blender_depth_map0001.png", "order": 6 }, "class_type": "BlenderInputLoadImage",