add_driver
Add a driver to any object property, like location, to automate animations or control values with expressions. Specify the object and data path to create the driver.
Instructions
Add a driver to an object property. data_path e.g. 'location'.
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": {
"object_name": "<object_name>",
"data_path": "<data_path>"
},
"name": "add_driver"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| data_path | Yes | ||
| expression | No | var | |
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |