setCameraProperties
Adjust an After Effects 3D camera layer by setting position, point of interest, rotation, zoom, depth of field, focus distance, aperture, iris, or auto-lock focus to a target layer.
Instructions
Set or modify properties on an existing 3D camera layer (position, pointOfInterest, rotations, zoom, depthOfField, focusDistance, aperture, iris, or auto-lock focus to a layer)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoom | No | Camera zoom / focal length in pixels | |
| aperture | No | Aperture in pixels (controls blur strength) | |
| compName | No | Composition name (defaults to active comp) | |
| position | No | New 3D position [x, y, z] | |
| blurLevel | No | Blur level percentage (0 - 500) | |
| irisShape | No | Iris bokeh blade shape | |
| rotationX | No | X rotation in degrees | |
| rotationY | No | Y rotation in degrees | |
| rotationZ | No | Z rotation in degrees | |
| cameraName | No | Camera layer name | |
| cameraType | No | Switch camera between one-node (no auto-orient) and two-node (auto-orient to point of interest) | |
| cameraIndex | No | Camera layer index (1-based) | |
| orientation | No | 3D orientation [x, y, z] in degrees | |
| depthOfField | No | Enable/disable Depth of Field | |
| irisRotation | No | Iris rotation angle in degrees | |
| focusDistance | No | Focus distance in pixels | |
| irisRoundness | No | Iris roundness percentage | |
| irisAspectRatio | No | Iris aspect ratio (anamorphic bokeh stretching) | |
| pointOfInterest | No | New 3D Point of Interest [x, y, z] | |
| lockFocusToLayer | No | Name or index of target layer to permanently lock camera focusDistance to, keeping the target razor sharp |