Resize / scale composition
resize_compScale an After Effects composition and its layers, then update comp dimensions and camera settings; specify a factor or target width/height to resize around the top-left.
Instructions
Scale a composition and everything in it (like the classic 'Scale Composition' script): unparented layers are scaled around the top-left via a temporary 3D null, the comp size changes, and camera zoom/focus distance/aperture are scaled. Give a 'scale' factor, or width and/or height (one side keeps the aspect ratio; both sides may scale non-uniformly). Pixel-based effect values are not scaled.
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": "resize_comp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| scale | No | Uniform factor, e.g. 0.5 (half) or 2 (double). | |
| width | No | New width in px. | |
| height | No | New height in px. | |
| scaleCameras | No | Scale camera zoom/focus/aperture (default true). |