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

nodes/switch.json (969B)

 1 {
 2  "name": "Switch",
 3  "type": "switch",
 4  "inputs": 4,
 5  "outputs": 1,
 6  "params": [
 7   { "name": "input", "label": "Input", "type": "node", "default": "", "description": "Node whose geometry is passed through unchanged when Index is 0." },
 8   { "name": "input_2", "label": "Input 2", "type": "node", "default": "", "description": "Node whose geometry is passed through unchanged when Index is 1." },
 9   { "name": "input_3", "label": "Input 3", "type": "node", "default": "", "description": "Node whose geometry is passed through unchanged when Index is 2." },
10   { "name": "input_4", "label": "Input 4", "type": "node", "default": "", "description": "Node whose geometry is passed through unchanged when Index is 3." },
11   { "name": "index", "label": "Index", "type": "spinbox", "default": "0", "min": 0, "max": 3, "step": 1, "description": "Which input to pass on: 0 is Input, 1 is Input 2, and so on. Values past the range are clamped; an empty slot passes nothing." }
12  ]
13 }