-
Notifications
You must be signed in to change notification settings - Fork 2
/
unused_nodes.py
74 lines (60 loc) · 1.81 KB
/
unused_nodes.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# class NumberListIndex:
# @classmethod
# def INPUT_TYPES(cls):
# return {
# "required": {
# "list": ("LIST",),
# "index": ("INT", {"default": 0}),
# },
# }
# RETURN_TYPES = "NUMBER",
# FUNCTION = "run"
# CATEGORY = "QQNodes/List"
# def run(self, list, index):
# return (list[index % len(list)],)
# class NumberListIterator:
# @classmethod
# def INPUT_TYPES(cls):
# return {
# "required": {
# "counter": ("INT", {"default": 0}),
# "list": ("LIST",),
# "repeats": ("INT", {"default": 1, "min": 1}),
# },
# "optional": {
# }
# }
# RETURN_TYPES = "NUMBER",
# FUNCTION = "run"
# CATEGORY = "QQNodes/List"
# def run(self, counter, list, repeats):
# return (list[counter // repeats % len(list)],)
# class TextListIterator:
# @classmethod
# def INPUT_TYPES(cls):
# return {
# "required": {
# "counter": ("INT", {"default": 0}),
# "list": ("LIST",),
# "repeats": ("INT", {"default": 1, "min": 1}),
# }
# }
# RETURN_TYPES = "STRING",
# FUNCTION = "run"
# CATEGORY = "QQNodes/List"
# def run(self, counter, list, repeats):
# return (list[counter // repeats % len(list)],)
# class TextListIndex(FeedbackNode):
# @classmethod
# def INPUT_TYPES(cls):
# return {
# "required": {
# "list": ("LIST",),
# "index": ("INT", {"default": 0}),
# },
# }
# RETURN_TYPES = "STRING",
# FUNCTION = "run"
# CATEGORY = "QQNodes/List"
# def run(self, list, index):
# return (list[index % len(list)],)