Set curve
curve_setReplaces all keys of a node's curve in an IlluGen project to remap curves or define custom oscillator waveforms; writes the project file in place.
Instructions
Replaces all the keys of a node's curve (remap curves, custom oscillator waveforms...).
The previous keys are discarded. Writes the project file in place.
Returns: curve (name written) and keys (number of keys).Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"node_id": "<node_id>",
"curve": "<curve>",
"points": "<points>"
},
"name": "curve_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the .illugen project file. | |
| curve | Yes | Curve name as shown by node_get or describe_node_type, e.g. Noise 'Final remap', Levels 'Main remap', Oscillator 'custom_waveform'. | |
| graph | No | Graph to work in: empty for the top-level graph, or the id or label of a Node_Subgraph node ('outer/inner' for nested subgraphs). | |
| points | Yes | At least 2 keys: [[position, value], ...] (positions usually 0..1), or dicts {position, value, interpolation} to vary the interpolation per key. | |
| node_id | Yes | Node id as a string (from project_summary or node_add), or the node's label if it is unique. | |
| interpolation | No | Interpolation for keys that do not set their own. | smooth |