摄像机
Camera
Section titled “Camera”thisLayer.cameraOption
此类别用于摄像机图层的特定属性。
- 所有 3D 材质属性
Camera.active
Section titled “Camera.active”thisLayer.cameraOption.active
如果满足以下条件,则返回 true
:
- 摄像机在当前时间是合成的活动摄像机:摄像机图层的视频开关已打开,
- 当前时间在摄像机图层的入点到出点范围内,并且
- 摄像机是时间轴面板中列出的第一个(最顶部)此类摄像机图层。
否则返回 false
。
布尔值
Camera.aperture
Section titled “Camera.aperture”thisLayer.cameraOption.aperture
返回摄像机的光圈值,单位为像素。
数字
Camera.blurLevel
Section titled “Camera.blurLevel”thisLayer.cameraOption.blurLevel
以百分比形式返回摄像机的模糊级别值。
数字
Camera.depthOfField
Section titled “Camera.depthOfField”thisLayer.cameraOption.depthOfField
如果摄像机的景深属性已打开,则返回 1
;如果景深属性已关闭,则返回 0
。
布尔值数字
Camera.focusDistance
Section titled “Camera.focusDistance”thisLayer.cameraOption.focusDistance
返回摄像机的焦点距离值,单位为像素。
数字
Camera.highlightGain
Section titled “Camera.highlightGain”thisLayer.cameraOption.highlightGain
返回摄像机的高光增益,范围为 1 到 100。
数字
Camera.highlightSaturation
Section titled “Camera.highlightSaturation”thisLayer.cameraOption.highlightSaturation
返回摄像机的高光饱和度,范围为 1
到 100
。
数字
Camera.highlightThreshold
Section titled “Camera.highlightThreshold”thisLayer.cameraOption.highlightThreshold
返回摄像机的高光阈值。
- 在 8 位合成中,此值范围为
0
到100
- 在 16 位合成中,此值范围为
0
到32768
- 在 32 位合成中,此值范围为
0
到1.0
数字
Camera.irisAspectRatio
Section titled “Camera.irisAspectRatio”thisLayer.cameraOption.irisAspectRatio
返回摄像机光圈宽高比,范围为 1 到 100。
数字
Camera.irisDiffractionFringe
Section titled “Camera.irisDiffractionFringe”thisLayer.cameraOption.irisDiffractionFringe
返回摄像机光圈衍射边缘,范围为 1 到 100。
数字
Camera.irisRotation
Section titled “Camera.irisRotation”thisLayer.cameraOption.irisRotation
返回光圈旋转值,单位为度。
数字
Camera.irisRoundness
Section titled “Camera.irisRoundness”thisLayer.cameraOption.irisRoundness
以百分比形式返回摄像机光圈圆度值。
数字
Camera.irisShape
Section titled “Camera.irisShape”thisLayer.cameraOption.irisShape
返回光圈形状值,范围为 1-10,对应于选定的下拉值。
:::note 值 2
保留用于分隔符。 :::#### 类型
数字
Camera.pointOfInterest
Section titled “Camera.pointOfInterest”thisLayer.cameraOption.pointOfInterest
返回摄像机在世界空间中的兴趣点值。
数组(3 维)
Camera.zoom
Section titled “Camera.zoom”thisLayer.cameraOption.zoom
返回摄像机的缩放值,单位为像素。
数字
以下是一个用于图层缩放属性的表达式,它在改变图层的 z 位置(深度)或摄像机的缩放值时保持图层的相对大小不变:
cam = thisComp.activeCamera;distance = length(sub(position, cam.position));scale * distance / cam.zoom;