Set Attributes
set_attributesSet one or more attributes on a Maya node by mapping attribute names to new values; optionally target a specific session when multiple Maya instances are connected.
Instructions
Set one or more attributes on a node.
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": {
"node": "<node>",
"attrs": "<attrs>"
},
"name": "set_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node name. | |
| attrs | Yes | Mapping of attribute name to new value. | |
| session_key | No | Target Maya session; omit if only one is connected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||