-
Notifications
You must be signed in to change notification settings - Fork 3
/
__init__.py
40 lines (33 loc) · 846 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
@author: shinich39
@title: Random Node
@nickname: Random Node
@version: 1.0.2
@description: Shuffle nodes after queue added.
"""
DEBUG = False
VERSION = "1.0.2"
WEB_DIRECTORY = "./js"
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
# ComfyUI-inspire-pack
class AnyType(str):
def __ne__(self, __value: object) -> bool:
return False
ANY_TYPE = AnyType("*")
class RandomNode:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"": (ANY_TYPE,),
},
}
CATEGORY = "utils"
RETURN_TYPES = (ANY_TYPE,)
RETURN_NAMES = ("output0",)
NODE_CLASS_MAPPINGS["Random Node"] = RandomNode
NODE_DISPLAY_NAME_MAPPINGS["Random Node"] = "Random Node"