Fit layer to comp
fit_layer_to_compScale layers to a composition's size based on their content bounds with fit, fill, stretch, width, or height modes, and optionally center them.
Instructions
Scale layers to the comp size based on their content rectangle: fit (contain), fill (cover), stretch (non-uniform), fit_width or fit_height, then center them (center=false to skip).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fit_layer_to_comp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| mode | No | Default fit. | |
| time | No | Comp time at which content bounds and transforms are measured (default: current time). | |
| center | No | Center in the comp after scaling (default true). | |
| layers | No | Layers: array of layer refs, or 'selected' (default) or 'all'. |