git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

nodes/neighbour.json (1.9K)

 1 {
 2   "name": "Neighbour",
 3   "type": "neighbour",
 4   "inputs": 1,
 5   "outputs": 1,
 6   "params": [
 7     {
 8       "name": "Input",
 9       "type": "text",
10       "default": ""
11     },
12     {
13       "name": "Attribute",
14       "type": "text",
15       "default": "mass"
16     },
17     {
18       "name": "Mode",
19       "type": "choice:Diffuse,Concentrate,Migrate,Bleed,Align,Lead,Charge",
20       "default": "Diffuse"
21     },
22     {
23       "name": "Neighbourhood",
24       "type": "choice:Connectivity,Radius,Global",
25       "default": "Connectivity",
26       "show_when": "Mode != Bleed"
27     },
28     {
29       "name": "Rings",
30       "type": "spinbox",
31       "default": "1",
32       "min": 1.0,
33       "max": 8.0,
34       "step": 1.0,
35       "show_when": "Neighbourhood == Connectivity && Mode != Bleed"
36     },
37     {
38       "name": "Radius",
39       "type": "slider",
40       "default": "0.20",
41       "min": 0.0,
42       "max": 2.0,
43       "step": 0.01,
44       "show_when": "Neighbourhood == Radius && Mode != Bleed"
45     },
46     {
47       "name": "Amount",
48       "type": "slider",
49       "default": "0.50",
50       "min": 0.0,
51       "max": 1.0,
52       "step": 0.01
53     },
54     {
55       "name": "Direction",
56       "type": "text",
57       "default": "",
58       "show_when": "Mode == Migrate"
59     },
60     {
61       "name": "Group",
62       "type": "text",
63       "default": ""
64     },
65     {
66       "name": "Target",
67       "type": "choice:Local Average,Global Average,Constant,Attribute,Surface Tangent",
68       "default": "Local Average",
69       "show_when": "Mode == Align"
70     },
71     {
72       "name": "Constant",
73       "type": "text",
74       "default": "0.00:1.00:0.00",
75       "show_when": "Mode == Align && Target == Constant"
76     },
77     {
78       "name": "Source",
79       "type": "text",
80       "default": "",
81       "show_when": "Mode == Align|Lead"
82     },
83     {
84       "name": "Release",
85       "type": "slider",
86       "default": "1.00",
87       "min": 0.0,
88       "max": 10.0,
89       "step": 0.05,
90       "show_when": "Mode == Charge"
91     }
92   ]
93 }