set_parent
Re-parent a layer or peg to a table, another peg, or layer to reorganize OpenToonz animation hierarchies and control motion relationships.
Instructions
Re-parent a layer or peg to 'Table', a peg, or another layer.
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": {
"scene": "<scene>",
"target": "<target>",
"parent": "<parent>"
},
"name": "set_parent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | Yes | ||
| parent | Yes | ||
| target | Yes |