Create camera
create_cameraAdd a camera to an After Effects composition with a preset focal length or pixel zoom, one- or two-node aiming, optional depth of field, and configurable aperture, position, and focus.
Instructions
Add a camera to a composition. Pick a lens by focal length (presets 15/20/24/28/35/50/80/135/200 mm, zoom computed from the comp width and 36 mm film) or give zoom in pixels. Default: 50 mm two-node camera at [w/2, h/2, -zoom] looking at the comp center (same framing as no camera). oneNode=true makes a one-node (free) camera that is aimed by Orientation/Rotation instead of a point of interest. Optional depth-of-field settings. Returns the camera with its options.
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": "create_camera"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| name | No | Layer name (default 'Camera'). | |
| zoom | No | Zoom in pixels (overrides preset). | |
| preset | No | Lens focal length in mm (presets 15, 20, 24, 28, 35, 50, 80, 135, 200 or any number; '35mm' also works). Zoom = compWidth * mm / 36 (36 mm film). Default 50. | |
| oneNode | No | One-node camera (no point of interest). Default false = two-node. | |
| aperture | No | Aperture in pixels. | |
| position | No | Camera position [x,y,z] in comp pixels. Default [w/2, h/2, -zoom]. | |
| blurLevel | No | Blur level % (default 100). | |
| depthOfField | No | Enable depth of field (focus distance defaults to the zoom distance). | |
| focusDistance | No | Focus distance in pixels. | |
| pointOfInterest | No | Point of interest [x,y,z] (two-node only). Default comp center [w/2, h/2, 0]. |