-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExampleNode.py
52 lines (39 loc) · 1.56 KB
/
ExampleNode.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
class ExampleNode:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"int": ("INT", {
"default": 0,
"display": "number" }),
"int_slider": ("INT", {
"default": 0,
"min": 0,
"max": 4096,
"step": 64,
"display": "slider" }),
"float": ("FLOAT", {
"default": 1.0,
"round": False,
"display": "number"}),
"float_round": ("FLOAT", {
"default": 1.00,
"min": 0.00,
"max": 10.00,
"step": 0.001,
"round": 0.001,
"display": "number"}),
"string": ("STRING", {
"default": "Hello World!"}),
"string_multiline": ("STRING", {
"multiline": True,
"default": "Hello World!"}),
},
}
FUNCTION = "output"
def output(self,int,int_slider,float,float_round,string,string_multiline):
return (int,int_slider,float,float_round,string,string_multiline)
RETURN_TYPES = ("INT","INT","FLOAT","FLOAT","STRING","STRING",)
RETURN_NAMES = ("INT","INT_SLIDER","FLOAT","FLOAT_ROUND","STRING","STRING_MULTILINE",)
OUTPUT_NODE = True
CATEGORY = "ecjojo_example"