diff --git a/MultiFloatNodeAID.py b/MultiFloatNodeAID.py index e0ad423..250d68a 100644 --- a/MultiFloatNodeAID.py +++ b/MultiFloatNodeAID.py @@ -11,7 +11,6 @@ class MultiFloatNodeAID: "max": 3.4e38, # or another large positive float if needed "step": 0.1, # default step for float "hide": True, - "forceInput": True, }, ) for i in range(20) diff --git a/MultiIntNode.py b/MultiIntNode.py index f27230b..4b546e1 100644 --- a/MultiIntNode.py +++ b/MultiIntNode.py @@ -11,7 +11,6 @@ class MultiInt: "max": 2147483647, "step": 1, "hide": True, # hidden by default, the JS can show them - "forceInput": True, }, ) for i in range(20) diff --git a/MultiText.py b/MultiText.py index ebe9f96..8904908 100644 --- a/MultiText.py +++ b/MultiText.py @@ -3,15 +3,8 @@ class MultiText: @classmethod def INPUT_TYPES(s): return { - "required": { - "separator": ("STRING", { - "default": " ", - "multiline": False, - "hidden": True, - "forceInput": True - }), - "active": ("BOOLEAN", {"default": True, "hidden": True}), - }, + "required": { + }, "hidden": { **{f"enabled{i}": ("BOOLEAN", {"default": True}) for i in range(1, 21)}, **{f"text{i}": ("STRING", {"multiline": True}) for i in range(1, 21)}, @@ -20,7 +13,18 @@ class MultiText: "min": 0.0, "max": 2.0, "step": 0.1 - }) for i in range(1, 21)} + }) for i in range(1, 21)}, + **{"separator": ("STRING", { + "default": " ", + "multiline": False, + "visible": False, + "widget": "hidden" + })}, + **{"active": ("BOOLEAN", { + "default": True, + "visible": False, + "widget": "hidden" + })}, } } diff --git a/README.md b/README.md index 488cd50..78f4c4a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +### MOST RECENT UPDATE 7/21/2025 +Please note this most recent update may make the multi-text node forget the titles and text values for your nodes. Please make a backup of your node before updating. + # ComfyUI_AIDocsClinicalTools The AI Doctors Custom ComfyUI Nodes diff --git a/js/MultiText.js b/js/MultiText.js index 3edeb7f..6b1c441 100644 --- a/js/MultiText.js +++ b/js/MultiText.js @@ -412,21 +412,23 @@ const MultiTextNode = { const separator = ComfyWidgets["STRING"](this, "separator", ["STRING", { default: " ", visible: false, - forceInput: true + hidden: true, }], app); const active = ComfyWidgets["BOOLEAN"](this, "active", ["BOOLEAN", { default: true, - visible: false + visible: false, + hidden: true, }], app); if (separator?.widget) { - separator.widget.computeSize = () => [0, -4]; separator.widget.hidden = true; + separator.widget.computeSize = () => [0, -4]; this.separator = separator; } if (active?.widget) { - active.widget.computeSize = () => [0, -4]; active.widget.hidden = true; + active.widget.computeSize = () => [0, -4]; + } this.serialize_widgets = true; diff --git a/pyproject.toml b/pyproject.toml index bd0aa3a..4d7a5de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "The-AI-Doctors-Clinical-Tools" description = "Nodes: Multi Int and Multi Text; allows for the creation of multiple int, floats and string storage and output from a single node." -version = "1.1.1" +version = "2.0.0" license = {file = "LICENSE"} dependencies = []