22 lines
579 B
Python
22 lines
579 B
Python
class DeforumDataBase:
|
|
|
|
# @classmethod
|
|
# def INPUT_TYPES(s):
|
|
# return s.params
|
|
|
|
RETURN_TYPES = (("deforum_data",))
|
|
FUNCTION = "get"
|
|
OUTPUT_NODE = True
|
|
CATEGORY = f"deforum_data"
|
|
@classmethod
|
|
def IS_CHANGED(cls, text, autorefresh):
|
|
# Force re-evaluation of the node
|
|
if autorefresh == "Yes":
|
|
return float("NaN")
|
|
def get(self, deforum_data=None, *args, **kwargs):
|
|
|
|
if deforum_data:
|
|
deforum_data.update(**kwargs)
|
|
else:
|
|
deforum_data = kwargs
|
|
return (deforum_data,) |