Last updated 12/21/2009
m = thisLayer.marker.nearestKey(time);
s = "time:" + timeToCurrentFormat(m.time) + "\r" +
"duration: " + m.duration + "\r" +
"key index: " + m.index + "\r" +
"comment:" + m.comment + "\r" +
"chapter:" + m.chapter + "\r" +
"URL:" + m.url + "\r" +
"frame target: " + m.frameTarget + "\r" +
"cue point name: " + m.cuePointName + "\r" +
"Event cue point? " + m.eventCuePoint + "\r";
for (param in m.parameters){
s += "parameter: " + param + " value: " + m.parameters[param] + "\r";
}
s
Because the XMP metadata in a footage item can be converted into layer markers for a layer based on that item,
expressions can interact with XMP metadata. For information, see
Dan Ebberts provides a tutorial on the
with expressions.
Return type: Number.
duration
Duration, in seconds, of marker.
Return type: String.
comment
Contents of Comment field in marker dialog box.
Return type: String.
chapter
Contents of Chapter field in marker dialog box.
Return type: String.
url
Contents of URL field in marker dialog box.
Return type: String.
frameTarget
Contents of Frame Target field in marker dialog box.
Return type: Boolean.
eventCuePoint
Setting for cue point type in marker dialog box. True for Event; false for Navigation.
Return type: String.
cuePointName
Contents of cue point Name field in marker dialog box.
Return type: associative array of String values.
parameters
Contents of Parameter Name and Parameter Value fields in marker dialog box.
For example, if you have a parameter named "background color", then you can use the following expression to access
its value at the nearest marker:
thisComp.marker.nearestKey(time).parameters["background color"]
After Effects Developer Center
"XMP metadata in After
Effects" on page 626.
that includes an example of using XMP metadata
682
USING AFTER EFFECTS CS4
Expressions