camera
Camera
Section titled “Camera”thisLayer.cameraOption
This category is for items specific to Camera Layers.
- all the 3d material properties
Attributes
Section titled “Attributes”Camera.active
Section titled “Camera.active”thisLayer.cameraOption.active
Description
Section titled “Description”Returns true
if:
- The camera is the active camera for the composition at the current time: the video switch for the camera layer is on,
- the current time is in the range from the in point of the camera layer to the out point of the camera layer, and
- The camera is the first (topmost) such camera layer listed in the timeline panel
Returns false
otherwise.
Boolean
Camera.aperture
Section titled “Camera.aperture”thisLayer.cameraOption.aperture
Description
Section titled “Description”Returns the aperture value of a camera, in pixels.
Number
Camera.blurLevel
Section titled “Camera.blurLevel”thisLayer.cameraOption.blurLevel
Description
Section titled “Description”Returns the blur level value of a camera as a percentage.
Number
Camera.depthOfField
Section titled “Camera.depthOfField”thisLayer.cameraOption.depthOfField
Description
Section titled “Description”Returns 1
if the Depth Of Field property of a camera is on, or returns 0
if the Depth Of Field property is off.
Boolean Number
Camera.focusDistance
Section titled “Camera.focusDistance”thisLayer.cameraOption.focusDistance
Description
Section titled “Description”Returns the focus distance value of a camera, in pixels.
Number
Camera.highlightGain
Section titled “Camera.highlightGain”thisLayer.cameraOption.highlightGain
Description
Section titled “Description”Returns the camera highlight gain, from 1 to 100.
Number
Camera.highlightSaturation
Section titled “Camera.highlightSaturation”thisLayer.cameraOption.highlightSaturation
Description
Section titled “Description”Returns the camera highlight saturation, from 1
to 100
.
Number
Camera.highlightThreshold
Section titled “Camera.highlightThreshold”thisLayer.cameraOption.highlightThreshold
Description
Section titled “Description”Returns the camera highlight threshhold.
- In an 8-bit comp, this value ranges from
0
to100
- In a 16-bit comp, this value ranges from
0
to32768
- In a 32-bit comp, this value ranges from
0
to1.0
Number
Camera.irisAspectRatio
Section titled “Camera.irisAspectRatio”thisLayer.cameraOption.irisAspectRatio
Description
Section titled “Description”Returns the camera iris aspect ratio, from 1 to 100.
Number
Camera.irisDiffractionFringe
Section titled “Camera.irisDiffractionFringe”thisLayer.cameraOption.irisDiffractionFringe
Description
Section titled “Description”Returns the camera iris diffraction fringe, from 1 to 100.
Number
Camera.irisRotation
Section titled “Camera.irisRotation”thisLayer.cameraOption.irisRotation
Description
Section titled “Description”Returns the iris rotation value, in degrees.
Number
Camera.irisRoundness
Section titled “Camera.irisRoundness”thisLayer.cameraOption.irisRoundness
Description
Section titled “Description”Returns the camera iris roundness value as a percentage.
Number
Camera.irisShape
Section titled “Camera.irisShape”thisLayer.cameraOption.irisShape
Description
Section titled “Description”Returns the iris shape value from 1-10, corresponding to the selected dropdown value.
Number
Camera.pointOfInterest
Section titled “Camera.pointOfInterest”thisLayer.cameraOption.pointOfInterest
Description
Section titled “Description”Returns the point of interest values of a camera in world space.
Array (3 dimensional)
Camera.zoom
Section titled “Camera.zoom”thisLayer.cameraOption.zoom
Description
Section titled “Description”Returns the zoom values of a camera in pixels.
Number
Example
Section titled “Example”Here’s an expression for the Scale property of a layer that maintains the relative size of the layer in frame while changing the z position (depth) of a layer or the Zoom value of a camera:
cam = thisComp.activeCamera;distance = length(sub(position, cam.position));scale * distance / cam.zoom;