graphic design tool
git clone https://git.lucas.co/cce-designer.git
nodes/curve.json (841B)
1 {
2 "name": "Curve",
3 "type": "curve",
4 "inputs": 0,
5 "outputs": 1,
6 "params": [
7 { "name": "points", "label": "Points", "default": "-0.75 0.05 0; -0.25 1.05 0; 0.25 0.05 0; 0.75 1.05 0", "type": "text", "description": "Control points as x y z triples in world coordinates, separated by semicolons. The curve passes through each one; Edit Handles lets you drag them in the viewport." },
8 { "name": "segments", "label": "Segments", "default": "8", "type": "spinbox", "min": 1, "max": 64, "step": 1, "description": "Number of straight pieces sampled between each pair of control points. Higher values give a smoother curve.", "group": "shape" },
9 { "name": "thickness", "label": "Thickness", "default": "0.02", "type": "slider", "description": "Width of the curve's square cross-section in world units.", "group": "shape" }
10 ]
11 }