set_layer_parent
Establish or remove parent-child relationships between layers in After Effects compositions to organize layer hierarchies and control transformations.
Instructions
Set parent-child relationship between layers
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": {
"compId": "<compId>",
"childLayerIndex": "<childLayerIndex>"
},
"name": "set_layer_parent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| childLayerIndex | Yes | Index of the child layer | |
| parentLayerIndex | No | Index of the parent layer (null to remove parent) |