Adobe After Effects User Manual
Page 695

marker.nearestKey(t)
marker.numKeys
name
orientation
rotationX
rotationY
rotationZ
lightTransmission
castsShadows
acceptsShadows
acceptsLights
ambient
diffuse
Argument type: name is a String.
Returns the MarkerKey object of the layer marker with the specified name. The name value is the name of the marker, as typed in the comment
field in the marker dialog box, for example, marker.key("ch1"). If more than one marker on the layer has the same name, this method returns
the marker that occurs first in time (in layer time). The value for a marker key is a String, not a Number.
This expression on a property ramps the value of the property from 0 to 100 between two markers identified by name:
m1 = marker.key("Start").time; m2 = marker.key("End").time; linear(time, m1, m2, 0, 100);
Return type: MarkerKey.
Argument type: t is a Number.
Returns the layer marker that is nearest in time to t. For example, this expression returns the time of the marker on the layer nearest to the time of
1 second:
marker.nearestKey(1).time
This expression returns the time of the marker on the layer nearest to the current time:
marker.nearestKey(time).time
Return type: Number.
Returns the total number of markers on the layer.
Return type: String.
Returns the name of the layer.
Layer 3D attributes and methods (expression reference)
Return type: Property [3].
Returns the 3D orientation value, in degrees, for a 3D layer.
Return type: Property.
Returns the x rotation value, in degrees, for a 3D layer.
Return type: Property.
Returns the y rotation value, in degrees, for a 3D layer.
Return type: Property.
Returns the z rotation value, in degrees, for a 3D layer.
Return type: Property.
Returns the value of the Light Transmission property for a 3D layer.
Return type: Property.
Returns a value of 1.0 if the layer casts shadows.
Return type: Property.
Returns a value of 1.0 if the layer accepts shadows.
Return type: Property.
Returns a value of 1.0 if the layer accepts lights.
Return type: Property.
Returns the ambient component value as a percentage.
Return type: Property.
691