Skip to content

Commit 3773d59

Browse files
authored
Add the subgraph publishing section (#462)
1 parent a3d3b4a commit 3773d59

File tree

9 files changed

+91
-3
lines changed

9 files changed

+91
-3
lines changed
231 KB
Loading
218 KB
Loading
238 KB
Loading
173 KB
Loading
75.1 KB
Loading
158 KB
Loading

interface/features/subgraph.mdx

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,48 @@ When you're done creating a subgraph, you can convert it back to nodes if you ne
9999
![Subgraph to node](/images/interface/features/subgraph/subgraph_to_nodes.jpg)
100100

101101
1. You can select the subgraph node then use right-click menu "Unpack subgraph" to convert it back to nodes.
102-
2. Click the "Unpack subgraph" button in the select toolbox to convert it back to nodes.
102+
2. Click the "Unpack subgraph" button in the select toolbox to convert it back to nodes.
103+
104+
## Subgraph Blueprint
105+
106+
With ComfyUI frontend version 1.27.7 or later, you can publish your subgraph to the node library.
107+
108+
This feature allows you to convert a subgraph to a `Subgraph Blueprints` node, which means it's a reusable subgraph node.
109+
110+
### Publish Subgraph to Node Library
111+
112+
![Publish Subgraph](/images/interface/features/subgraph/subgraph_publishing.jpg)
113+
114+
Currently, you have two ways to publish subgraph to node library, both are in the selection toolbox:
115+
116+
1. Click the `book(publish)` icon on the selection toolbox
117+
2. Open the selection toolbox menu, use the `Add Subgraph to Library` menu to publish subgraph
118+
119+
120+
After you click on the `book(publish)` icon or `Add Subgraph to Library` menu, you will see the following dialog:
121+
122+
![Subgraph naming](/images/interface/features/subgraph/subgraph_naming.jpg)
123+
124+
By default, the subgraph will use the name of the subgraph node as the name of the subgraph blueprint.
125+
126+
After publishing, you will see the subgraph blueprint node in the node library.
127+
128+
![Subgraph blueprint node](/images/interface/features/subgraph/subgraph_blueprints.jpg)
129+
130+
Now, you can drag or search the subgraph just like a normal node. The new subgraph node that has been added from Subgraph Blueprints is still isolated, which means after adding it to the workflow, it can be edited independently, they will not affect each other.
131+
132+
### Edit Subgraph Blueprint
133+
134+
If you want to edit the subgraph blueprint, you can click the edit button just like the image below, you can delete it as well.
135+
136+
![Edit Subgraph Blueprint](/images/interface/features/subgraph/edit_subgraph_blueprints.jpg)
137+
138+
This will enable the subgraph editing mode
139+
140+
![Subgraph editing mode](/images/interface/features/subgraph/subgraph_editing_mode.jpg)
141+
142+
After editing the subgraph blueprint, you can go to the parent level to preview the subgraph.
143+
144+
![Update Subgraph Blueprint](/images/interface/features/subgraph/save_updated_subgraph.jpg)
145+
146+
If you want to save the updated subgraph blueprint, you can click the save button or use the shortcut key Ctrl + S.

zh-CN/changelog/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "跟踪 ComfyUI 的最新功能、改进和错误修复"
44
icon: "clock-rotate-left"
55
---
66

7-
<Update label="v0.3.62" description="2025年9月30日">
7+
<Update label="v0.3.62" description="2025年10月1日">
88
- **Rodin3D-Gen2 参数修复**
99
- **Seedance Pro 模型支持**
1010
</Update>

zh-CN/interface/features/subgraph.mdx

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,48 @@ icon: "share-nodes"
9494

9595
当子图编辑完成后,你可以将子图转回为普通节点,只需要选中子图后,再在选择工具箱上选择同样的按钮即可完成子图转回节点的操作,在右键菜单上也有对应的选项
9696

97-
![子图转回普通节点](/images/interface/features/subgraph/subgraph_to_nodes.jpg)
97+
![子图转回普通节点](/images/interface/features/subgraph/subgraph_to_nodes.jpg)
98+
99+
100+
## 发布子图
101+
102+
从 ComfyUI 前端版本 1.27.7 开始,你可以将子图发布到节点库中。
103+
104+
此功能允许你将子图转换为 `子图蓝图(Blueprint)`,也就是可复用的子图节点。
105+
106+
### 发布子图到节点库
107+
108+
![发布子图](/images/interface/features/subgraph/subgraph_publishing.jpg)
109+
110+
目前有两种方式可以将子图发布到节点库,这两种方式都在选择工具箱中:
111+
112+
1. 点击选择工具箱上的 `书本(发布)` 图标
113+
2. 打开选择工具箱菜单,选择 `添加子图到库(Add Subgraph to Library)` 菜单项来发布子图
114+
115+
点击 `书本(发布)` 图标或 `添加子图到库(Add Subgraph to Library)` 菜单后,你会看到如下对话框:
116+
117+
![子图命名](/images/interface/features/subgraph/subgraph_naming.jpg)
118+
119+
默认情况下,子图蓝图会使用子图节点的名称作为子图蓝图的名称,你可以在这一步进行修改
120+
121+
发布后,你将在节点库中看到子图蓝图节点。
122+
123+
![子图蓝图节点](/images/interface/features/subgraph/subgraph_blueprints.jpg)
124+
125+
现在,你可以像普通节点一样拖拽或搜索该子图。通过子图蓝图添加的新子图节点是相互独立的,也就是说,添加到工作流后可以单独编辑并不相互影响
126+
127+
### 编辑子图蓝图
128+
129+
如果你想编辑子图蓝图,可以点击下图所示的编辑按钮,也可以删除它。
130+
131+
![编辑子图蓝图](/images/interface/features/subgraph/edit_subgraph_blueprints.jpg)
132+
133+
这将进入子图编辑模式
134+
135+
![子图编辑模式](/images/interface/features/subgraph/subgraph_editing_mode.jpg)
136+
137+
编辑完子图蓝图后,你可以返回上一级预览子图。
138+
139+
![更新子图蓝图](/images/interface/features/subgraph/save_updated_subgraph.jpg)
140+
141+
如果你想保存更新后的子图蓝图,可以点击保存按钮, 或者使用 Ctrl + S 进行保存, 即可更新子图

0 commit comments

Comments
 (0)