Crop comp to region
crop_comp_to_regionCrops a composition to a pixel rectangle while resizing the comp and shifting unparented layers to keep content in place; layers with position expressions are reported.
Instructions
Crop a composition to a rectangle given in current comp pixels (left, top, width, height): the comp is resized and every unparented layer (including keyframes, cameras' points of interest) is shifted by -left/-top so the content stays in place. Layers driven by position expressions are reported in notes.
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": {
"width": "<width>",
"height": "<height>"
},
"name": "crop_comp_to_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Top edge of the region in px (default 0). | |
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| left | No | Left edge of the region in px (default 0). | |
| width | Yes | Region width in px = new comp width. | |
| height | Yes | Region height in px = new comp height. |