Make dynamic inputs work better

This commit is contained in:
StableLlama
2025-05-29 23:38:01 +02:00
parent d5ee9bc56b
commit 043efe8e10
7 changed files with 125 additions and 131 deletions
+12 -10
View File
@@ -13,6 +13,8 @@ except:
ANY = "*"
ComfyNodeABC = object
from ._dynamic_input import ContainsDynamicDict
class SetCreate(ComfyNodeABC):
"""
@@ -24,9 +26,9 @@ class SetCreate(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls):
return {
"optional": {
"optional": ContainsDynamicDict({
"item_0": (IO.ANY, {"_dynamic": "number"}),
}
})
}
RETURN_TYPES = ("SET",)
@@ -49,9 +51,9 @@ class SetCreateFromBoolean(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls):
return {
"optional": {
"optional": ContainsDynamicDict({
"item_0": (IO.BOOLEAN, {"_dynamic": "number"}),
}
})
}
RETURN_TYPES = ("SET",)
@@ -74,9 +76,9 @@ class SetCreateFromFloat(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls):
return {
"optional": {
"optional": ContainsDynamicDict({
"item_0": (IO.FLOAT, {"_dynamic": "number"}),
}
})
}
RETURN_TYPES = ("SET",)
@@ -99,9 +101,9 @@ class SetCreateFromInt(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls):
return {
"optional": {
"optional": ContainsDynamicDict({
"item_0": (IO.INT, {"_dynamic": "number"}),
}
})
}
RETURN_TYPES = ("SET",)
@@ -124,9 +126,9 @@ class SetCreateFromString(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls):
return {
"optional": {
"optional": ContainsDynamicDict({
"item_0": (IO.STRING, {"_dynamic": "number"}),
}
})
}
RETURN_TYPES = ("SET",)