add_parameter_wire
Creates an expression-driven wire that binds a source scene parameter or layer property to a target, applying whitelisted math expressions such as map, clamp, or lerp to transform values.
Instructions
Add an expression-driven wire. The source value is bound as source (alias s) in a whitelist expression — map/clamp/lerp/min/max/abs/round/floor/ceil/sin/cos/tan/sqrt/pow/smoothstep — e.g. "map(source,0,1,0,360)". Source/target are scene params (propertyPath = param id, no layerId) or layer properties (layerId + dot-path).
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": {
"sourceProperty": "<sourceProperty>",
"targetProperty": "<targetProperty>",
"expression": "<expression>"
},
"name": "add_parameter_wire"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional wire id | |
| name | No | Optional wire name | |
| enabled | No | Enabled (default true) | |
| clampMax | No | Optional output clamp max | |
| clampMin | No | Optional output clamp min | |
| blendMode | No | Default override | |
| requestId | No | ||
| sessionId | No | ||
| expression | Yes | e.g. "map(source,0,1,0,360)" | |
| sourceLayerId | No | Source layer id (omit for a scene parameter) | |
| targetLayerId | No | Target layer id (omit for a scene parameter) | |
| sourceProperty | Yes | Source dot-path, or param id for a scene param | |
| targetProperty | Yes | Target dot-path, or param id for a scene param | |
| sourceValueType | No | Source value type (default number) | |
| targetValueType | No | Target value type (default number) | |
| expectedRevision | No |