Adobe After Effects CS3 User Manual
Page 573
AFTER EFFECTS CS3
User Guide
568
Returns the marker that is nearest in time to t. For example, this expression returns the time of the composition-time
marker nearest to the time of 1 second:
thisComp.marker.nearestKey(1).time
This expression returns the time of the composition-time marker nearest to the current time:
thisComp.marker.nearestKey(time).time
marker.numKeys
Return type: Number.
Returns the total number of composition-time markers in the composition.
numLayers
Return type: Number.
Returns the number of layers in the composition.
activeCamera
Return type: Camera.
Returns the Camera object for the camera through which the composition is rendered at the current frame. This is
not necessarily the camera through which you are looking in the Composition panel.
width
Return type: Number.
Returns the composition’s width, in pixels.
height
Return type: Number.
Returns the composition’s height, in pixels.
duration
Return type: Number.
Returns the composition’s duration, in seconds.
displayStartTime
Return type: Number.
Returns the composition start time, in seconds.
frameDuration
Return type: Number.
Returns the duration of a frame, in seconds.
shutterAngle
Return type: Number.
Returns the shutter-angle value of the composition, in degrees.
shutterPhase
Return type: Number.
Returns the shutter phase of the composition, in degrees.
bgColor
Return type: Array [4].
Returns the background color of the composition.
pixelAspect
Return type: Number.
Returns the pixel aspect ratio of the composition.
name
Return type: String.
Returns the name of the composition.