ComfyUI_NestedNodeBuilder
ComfyUI_NestedNodeBuilder copied to clipboard
Is there any way to rename inputs/outputs in the json?
When nesting nodes of the same basic type the nested node input/output may end up having several slots with the same name. You can rename them within the UI by right-clicking on the slot and selecting "Rename Slot" but obviously that will not edit the saved json for the nested node.
I tried editing the name in the json at description>nestedNodes>inputs>name but that caused an error. There is probably some way to do this already but I'm guessing I'm just not looking in the right place.
Also, I'm guessing I can rearrange the order of the inputs on the nested widget by editing the json but I haven't tried yet. This should probably be a feature for ComfyUI Core, but I figured I'd ask if there was an easy way to do it within this node.
Thank you! Since I found this custom node it has been much easier to keep my complicated workflows organized. This is super useful!
The easiest way to set custom names for input and output is to use the "Reroute" node.
Through the context menu of the slot, you need to open the name input field and give the desired name.
"Reroute" nodes must be highlighted before creating your custom node. Then their slot names will appear on the form.
I don't know how to set the order of the slots. In the JSON file in the properties of some slots there is a parameter "slot_index". Maybe it can help, but I didn't find a description of the properties of the input slots.
The order depends merely on the sequence of elements in the hierarchy of the JSON file.
I'll give that a shot, thank you