Connect Attributes
connections.connectConnect two attributes in Maya, optionally forcing disconnection of existing connections.
Instructions
Connect two attributes in Maya. Use force=True to disconnect existing connections first.
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": {
"source": "<source>",
"destination": "<destination>"
},
"name": "connections.connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | If True, disconnect existing connections to destination first | |
| source | Yes | Source plug in 'node.attribute' format | |
| destination | Yes | Destination plug in 'node.attribute' format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | ||
| source | Yes | ||
| connected | Yes | ||
| destination | Yes | ||
| disconnected | Yes |