graphic design tool
git clone https://git.lucas.co/cce-designer.git
nodes/repeat.json (1.2K)
1 {
2 "name": "Repeat",
3 "type": "repeat",
4 "inputs": 1,
5 "outputs": 1,
6 "params": [
7 {
8 "name": "input",
9 "label": "Input",
10 "type": "node",
11 "default": "",
12 "description": "The node whose geometry the first pass of the loop reads, through the input node inside."
13 },
14 {
15 "name": "iterations",
16 "label": "Iterations",
17 "type": "spinbox",
18 "default": "4",
19 "min": 0.0,
20 "max": 100.0,
21 "step": 1.0,
22 "description": "How many times the chain inside runs, each pass reading the last one's result. 0 passes the input through; at most 1000."
23 },
24 {
25 "name": "stop_when_unchanged",
26 "label": "Stop When Unchanged",
27 "type": "toggle",
28 "default": "false",
29 "description": "Ends the loop early at a pass that changes nothing, since every later pass would find the same."
30 }
31 ],
32 "children": [
33 {
34 "name": "input1",
35 "type": "input",
36 "params": [],
37 "position": [
38 0.0,
39 0.0
40 ]
41 },
42 {
43 "name": "seed1",
44 "type": "seed",
45 "params": [],
46 "position": [
47 2.0,
48 0.0
49 ],
50 "geometry_visible": false
51 },
52 {
53 "name": "output1",
54 "type": "output",
55 "params": [
56 {
57 "name": "input",
58 "default": "input1"
59 }
60 ],
61 "position": [
62 0.0,
63 2.0
64 ]
65 }
66 ]
67 }