Skip to content

Commit 1be63dc

Browse files
committed
add new examples and move to networks dir
1 parent de33333 commit 1be63dc

File tree

5 files changed

+1558
-1
lines changed

5 files changed

+1558
-1
lines changed

example_math_nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ def show_nodes_list(node):
4141

4242
# registered nodes.
4343
[graph.register_node(n) for n in Nodes]
44-
graph.load_session('example.nodes')
44+
graph.load_session(r'example_nodes\networks\example.nodes')
4545

4646
app.exec_()
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
{
2+
"nodes":{
3+
"0x150eccc8":{
4+
"type_":"Viewers.DataViewerNode",
5+
"icon":null,
6+
"name":"Output",
7+
"color":[
8+
13,
9+
18,
10+
23,
11+
255
12+
],
13+
"border_color":[
14+
74,
15+
84,
16+
85,
17+
255
18+
],
19+
"text_color":[
20+
255,
21+
255,
22+
255,
23+
180
24+
],
25+
"disabled":false,
26+
"selected":true,
27+
"width":170,
28+
"height":91.0,
29+
"pos":[
30+
602.4100268187593,
31+
341.7567828173967
32+
],
33+
"custom":{
34+
"data":""
35+
}
36+
},
37+
"0x150f5588":{
38+
"type_":"Inputs.BoolInputNode",
39+
"icon":null,
40+
"name":"Bool",
41+
"color":[
42+
13,
43+
18,
44+
23,
45+
255
46+
],
47+
"border_color":[
48+
74,
49+
84,
50+
85,
51+
255
52+
],
53+
"text_color":[
54+
255,
55+
255,
56+
255,
57+
180
58+
],
59+
"disabled":false,
60+
"selected":true,
61+
"width":170,
62+
"height":103.0,
63+
"pos":[
64+
40.41002681875926,
65+
275.7567828173967
66+
],
67+
"custom":{
68+
"out":true,
69+
"combo":"True"
70+
}
71+
},
72+
"0x150f5d88":{
73+
"type_":"Logics.BooleanNode",
74+
"icon":null,
75+
"name":"Boolean",
76+
"color":[
77+
13,
78+
18,
79+
23,
80+
255
81+
],
82+
"border_color":[
83+
74,
84+
84,
85+
85,
86+
255
87+
],
88+
"text_color":[
89+
255,
90+
255,
91+
255,
92+
180
93+
],
94+
"disabled":false,
95+
"selected":true,
96+
"width":170,
97+
"height":103.0,
98+
"pos":[
99+
310.41002681875943,
100+
338.7567828173967
101+
],
102+
"custom":{
103+
"out":null,
104+
"funcs":"and"
105+
}
106+
},
107+
"0x1510e948":{
108+
"type_":"Inputs.BoolInputNode",
109+
"icon":null,
110+
"name":"Bool 1",
111+
"color":[
112+
13,
113+
18,
114+
23,
115+
255
116+
],
117+
"border_color":[
118+
74,
119+
84,
120+
85,
121+
255
122+
],
123+
"text_color":[
124+
255,
125+
255,
126+
255,
127+
180
128+
],
129+
"disabled":false,
130+
"selected":true,
131+
"width":170,
132+
"height":103.0,
133+
"pos":[
134+
42.16002681875926,
135+
426.2567828173967
136+
],
137+
"custom":{
138+
"out":true,
139+
"combo":"True"
140+
}
141+
}
142+
},
143+
"connections":[
144+
{
145+
"in":[
146+
"0x150eccc8",
147+
"data"
148+
],
149+
"out":[
150+
"0x150f5d88",
151+
"out"
152+
]
153+
},
154+
{
155+
"out":[
156+
"0x150f5588",
157+
"out"
158+
],
159+
"in":[
160+
"0x150f5d88",
161+
"a"
162+
]
163+
},
164+
{
165+
"in":[
166+
"0x150f5d88",
167+
"b"
168+
],
169+
"out":[
170+
"0x1510e948",
171+
"out"
172+
]
173+
}
174+
]
175+
}

0 commit comments

Comments
 (0)