Set camera options
set_camera_optionsChanges camera options such as zoom, focal length, depth of field, focus distance, aperture, iris shape, and bokeh, either statically or as keyframes at a given time.
Instructions
Change a camera's Camera Options (zoom or focal length, depth of field, focus distance, aperture, blur level, iris shape/rotation/roundness, bokeh highlight...), statically or as keyframes at 'time'. cameraType switches one-node/two-node. Returns all camera options after the change; options that do not exist for the current renderer are listed in 'skipped'.
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": "set_camera_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| time | No | Set the values as keyframes at this time (seconds, '12f' or timecode). Omit = static value (or a key at the current time when the property is already animated). | |
| zoom | No | Zoom in pixels (overrides focalLength). | |
| camera | No | Camera layer (index, name or {id}). Omit = the comp's active camera. | |
| options | No | Any other option by display name or matchName, e.g. {'Iris Rotation': 30} or {'ADBE Light Intensity': 80}. | |
| aperture | No | Aperture in pixels (bigger = shallower focus). | |
| blurLevel | No | Blur level in % (100 = natural). | |
| irisShape | No | Iris shape: 'Fast Rectangle', 'Triangle', 'Square', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Nonagon', 'Decagon' (or 1-9). | |
| cameraType | No | Switch between one-node and two-node camera. | |
| focalLength | 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. | |
| depthOfField | No | Depth of field on/off. | |
| irisRotation | No | Iris rotation in degrees. | |
| focusDistance | No | Focus distance in pixels. | |
| highlightGain | No | Bokeh highlight gain. | |
| irisRoundness | No | Iris roundness %. | |
| focusAreaWidth | No | Focus area width (Advanced 3D renderer). | |
| irisAspectRatio | No | Iris aspect ratio. | |
| nearFarBlurLevel | No | [near, far] blur level % (Advanced 3D). | |
| highlightThreshold | No | Bokeh highlight threshold (0-1). | |
| highlightSaturation | No | Bokeh highlight saturation. | |
| irisDiffractionFringe | No | Iris diffraction fringe. |