User Guide

Using Help | Contents | Index Back 401
Adobe After Effects Help (5.5) Expressions
Using Help | Contents | Index Back 401
marker Returns the marker property for a layer. A marker property is unlike other
properties such as Position in that the only methods and attributes available from it are
key(), nearest_key, and num_keys. You can retrieve the keys in two ways: either by index,
for example, as in the following expression:
marker.key(1)
You can also retrieve it by the name of the marker, as typed in the comment field in the
marker dialog box:
marker.key("foo")
The value for marker keys is a string name, instead of a numeric value. For example, note
the following expression, written on a layer’s Opacity property:
m1 = marker.key("Start").time;
m2 = marker.key("End").time;
linear(time, m1, m2, 0, 100);