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

nodes/embryo.json (6.1K)

  1 {
  2  "name": "Embryo",
  3  "type": "node",
  4  "inputs": 1,
  5  "outputs": 1,
  6  "params": [
  7   {
  8    "name": "Input",
  9    "type": "text",
 10    "default": ""
 11   },
 12   {
 13    "name": "Source",
 14    "type": "choice:Internal,Input",
 15    "default": "Internal"
 16   },
 17   {
 18    "name": "Method",
 19    "type": "choice:Basic,Scatter",
 20    "default": "Basic"
 21   },
 22   {
 23    "name": "Base Resolution",
 24    "type": "spinbox",
 25    "default": "50",
 26    "min": 3,
 27    "max": 100,
 28    "step": 1,
 29    "show_when": "Source == Internal"
 30   },
 31   {
 32    "name": "Radius",
 33    "type": "slider",
 34    "default": "0.5",
 35    "min": 0.01,
 36    "max": 10.0,
 37    "step": 0.01,
 38    "show_when": "Source == Internal"
 39   },
 40   {
 41    "name": "Scatter Count",
 42    "type": "spinbox",
 43    "default": "1000",
 44    "min": 10,
 45    "max": 10000,
 46    "step": 10,
 47    "show_when": "Method == Scatter"
 48   },
 49   {
 50    "name": "Scatter Seed",
 51    "type": "slider",
 52    "default": "1.1",
 53    "min": 0.0,
 54    "max": 10.0,
 55    "step": 0.1,
 56    "show_when": "Method == Scatter"
 57   },
 58   {
 59    "name": "Relax Points",
 60    "type": "toggle",
 61    "default": "true",
 62    "show_when": "Method == Scatter"
 63   },
 64   {
 65    "name": "Scatter Relax Iterations",
 66    "type": "spinbox",
 67    "default": "50",
 68    "min": 0,
 69    "max": 100,
 70    "step": 1,
 71    "show_when": "Method == Scatter && Relax Points == true"
 72   },
 73   {
 74    "name": "Scale Radii By",
 75    "type": "slider",
 76    "default": "1.248",
 77    "min": 0.0,
 78    "max": 2.0,
 79    "step": 0.001,
 80    "show_when": "Method == Scatter && Relax Points == true"
 81   },
 82   {
 83    "name": "Use Max Relax Radius",
 84    "type": "toggle",
 85    "default": "true",
 86    "show_when": "Method == Scatter && Relax Points == true"
 87   },
 88   {
 89    "name": "Scatter Relax Radius",
 90    "type": "slider",
 91    "default": "10",
 92    "min": 0.0,
 93    "max": 100.0,
 94    "step": 0.1,
 95    "show_when": "Method == Scatter && Relax Points == true && Use Max Relax Radius == true"
 96   },
 97   {
 98    "name": "Relax Iterations",
 99    "type": "spinbox",
100    "default": "0",
101    "min": 0,
102    "max": 50,
103    "step": 1
104   },
105   {
106    "name": "Relax Radius",
107    "type": "slider",
108    "default": "1",
109    "min": 0.001,
110    "max": 1.0,
111    "step": 0.001
112   },
113   {
114    "name": "Relax in 3D Space",
115    "type": "toggle",
116    "default": "false"
117   },
118   {
119    "name": "Subdivision Depth",
120    "type": "spinbox",
121    "default": "0",
122    "min": 0,
123    "max": 3,
124    "step": 1
125   }
126  ],
127  "children": [
128   {
129    "name": "input1",
130    "type": "input",
131    "params": [],
132    "position": [
133     2.0,
134     0.0
135    ],
136    "geometry_visible": false
137   },
138   {
139    "name": "sphere1",
140    "type": "sphere",
141    "position": [
142     0.0,
143     0.0
144    ],
145    "params": [
146     {
147      "name": "Radius",
148      "default": "chf(\"../Radius\")",
149      "expr": true
150     },
151     {
152      "name": "Rows",
153      "default": "chi(\"../Base Resolution\")",
154      "expr": true
155     },
156     {
157      "name": "Columns",
158      "default": "chi(\"../Base Resolution\")",
159      "expr": true
160     },
161     {
162      "name": "Center Y",
163      "default": "0.0"
164     }
165    ],
166    "geometry_visible": false
167   },
168   {
169    "name": "source1",
170    "type": "switch",
171    "position": [
172     1.0,
173     1.0
174    ],
175    "params": [
176     {
177      "name": "Input",
178      "default": "sphere1"
179     },
180     {
181      "name": "Input 2",
182      "default": "input1"
183     },
184     {
185      "name": "Index",
186      "default": "chi(\"../Source\")",
187      "expr": true
188     }
189    ],
190    "geometry_visible": false
191   },
192   {
193    "name": "scatter1",
194    "type": "scatter",
195    "position": [
196     2.0,
197     2.0
198    ],
199    "params": [
200     {
201      "name": "Input",
202      "default": "source1"
203     },
204     {
205      "name": "Mode",
206      "default": "Surface"
207     },
208     {
209      "name": "Points",
210      "default": "chi(\"../Scatter Count\")",
211      "expr": true
212     },
213     {
214      "name": "Seed",
215      "default": "chf(\"../Scatter Seed\")",
216      "expr": true
217     },
218     {
219      "name": "Relax Points",
220      "default": "chb(\"../Relax Points\")",
221      "expr": true
222     },
223     {
224      "name": "Relax Iterations",
225      "default": "chi(\"../Scatter Relax Iterations\")",
226      "expr": true
227     },
228     {
229      "name": "Scale Radii By",
230      "default": "chf(\"../Scale Radii By\")",
231      "expr": true
232     },
233     {
234      "name": "Use Max Relax Radius",
235      "default": "chb(\"../Use Max Relax Radius\")",
236      "expr": true
237     },
238     {
239      "name": "Max Relax Radius",
240      "default": "chf(\"../Scatter Relax Radius\")",
241      "expr": true
242     },
243     {
244      "name": "Markers",
245      "default": "false"
246     }
247    ],
248    "geometry_visible": false
249   },
250   {
251    "name": "hull1",
252    "type": "hull",
253    "position": [
254     2.0,
255     3.0
256    ],
257    "params": [
258     {
259      "name": "Input",
260      "default": "scatter1"
261     }
262    ],
263    "geometry_visible": false
264   },
265   {
266    "name": "method1",
267    "type": "switch",
268    "position": [
269     1.0,
270     4.0
271    ],
272    "params": [
273     {
274      "name": "Input",
275      "default": "source1"
276     },
277     {
278      "name": "Input 2",
279      "default": "hull1"
280     },
281     {
282      "name": "Index",
283      "default": "chi(\"../Method\")",
284      "expr": true
285     }
286    ],
287    "geometry_visible": false
288   },
289   {
290    "name": "relax1",
291    "type": "relax",
292    "position": [
293     1.0,
294     5.0
295    ],
296    "params": [
297     {
298      "name": "Input",
299      "default": "method1"
300     },
301     {
302      "name": "Mode",
303      "default": "Repel"
304     },
305     {
306      "name": "Iterations",
307      "default": "chi(\"../Relax Iterations\")",
308      "expr": true
309     },
310     {
311      "name": "Radius",
312      "default": "chf(\"../Relax Radius\")",
313      "expr": true
314     },
315     {
316      "name": "In 3D Space",
317      "default": "chb(\"../Relax in 3D Space\")",
318      "expr": true
319     }
320    ],
321    "geometry_visible": false
322   },
323   {
324    "name": "subdivide1",
325    "type": "subdivide",
326    "position": [
327     1.0,
328     6.0
329    ],
330    "params": [
331     {
332      "name": "Input",
333      "default": "relax1"
334     },
335     {
336      "name": "Depth",
337      "default": "chi(\"../Subdivision Depth\")",
338      "expr": true
339     }
340    ],
341    "geometry_visible": false
342   },
343   {
344    "name": "normal1",
345    "type": "normal",
346    "position": [
347     1.0,
348     7.0
349    ],
350    "params": [
351     {
352      "name": "Input",
353      "default": "subdivide1"
354     }
355    ],
356    "geometry_visible": true
357   },
358   {
359    "name": "output1",
360    "type": "output",
361    "position": [
362     1.0,
363     8.0
364    ],
365    "params": [
366     {
367      "name": "Input",
368      "default": "normal1"
369     }
370    ],
371    "geometry_visible": false
372   }
373  ]
374 }