mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-05-24 01:15:44 +08:00
Move WidgetToString inputs back.
This commit is contained in:
parent
cc6196c25f
commit
d9bef9692a
@ -711,12 +711,12 @@ class WidgetToString:
|
|||||||
def INPUT_TYPES(cls):
|
def INPUT_TYPES(cls):
|
||||||
return {
|
return {
|
||||||
"required": {
|
"required": {
|
||||||
|
"id": ("INT", {"default": 0}),
|
||||||
"widget_name": ("STRING", {"multiline": False}),
|
"widget_name": ("STRING", {"multiline": False}),
|
||||||
"return_all": ("BOOLEAN", {"default": False}),
|
"return_all": ("BOOLEAN", {"default": False}),
|
||||||
},
|
},
|
||||||
"optional": {
|
"optional": {
|
||||||
"any_input": (any, {}),
|
"any_input": (any, {}),
|
||||||
"id": ("INT", {"default": 0}),
|
|
||||||
"node_title": ("STRING", {"multiline": False}),
|
"node_title": ("STRING", {"multiline": False}),
|
||||||
},
|
},
|
||||||
"hidden": {"extra_pnginfo": "EXTRA_PNGINFO",
|
"hidden": {"extra_pnginfo": "EXTRA_PNGINFO",
|
||||||
@ -736,7 +736,7 @@ are manually edited!
|
|||||||
The 'any_input' is required for making sure the node you want the value from exists in the workflow.
|
The 'any_input' is required for making sure the node you want the value from exists in the workflow.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def get_widget_value(self, widget_name, extra_pnginfo, prompt, unique_id, return_all=False, any_input=None, id=0, node_title=""):
|
def get_widget_value(self, id, widget_name, extra_pnginfo, prompt, unique_id, return_all=False, any_input=None, node_title=""):
|
||||||
workflow = extra_pnginfo["workflow"]
|
workflow = extra_pnginfo["workflow"]
|
||||||
#print(json.dumps(workflow, indent=4))
|
#print(json.dumps(workflow, indent=4))
|
||||||
results = []
|
results = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user