TextDocument object

The TextDocumentobject stores a value for a TextLayer’s Source Text property. Create it withthe constructor, passing the string to be encapsulated.ExamplesT

keySelected()

Returns true if the specified keyframe is selected.keyIndex The index for the keyframe. An integer in the range [1..numKeys], as returned by the addKey or n

setSelectedAtKey()

Selects or deselects the specified keyframe.keyIndex The index for the keyframe. An integer in the range [1..numKeys], as returned by the addKey or nearest-

expressionEnabled

When true, the named property uses its associated expression to generate a value. When false, the keyframe information or static value of the property is us

keySpatialAutoBezier()

Returns true if the specified keyframe has spatial auto-Bezier interpolation. This type of interpolation affectsthis keyframe only if keySpatialContinuous k

setSpatialAutoBezierAtKey()

Turns spatial auto-Bezier interpolation on or off for the specified keyframe.If the property value type is neither TwoD _SPATIAL nor ThreeD_SPATIAL, an exce

addKey()

Adds a new keyframe or marker to the named property at the specified time and returns the index of the new keyframe.time The time, in seconds, at which to a

keySpatialContinuous()

Returns true if the specified keyframe has spatial continuity.If the property value type is neither TwoD _SPATIAL nor ThreeD_SPATIAL, an exception is genera

setSpatialContinuousAtKey()

Turns spatial continuity on or off for the specified keyframe.If the property value type is neither TwoD _SPATIAL nor ThreeD_SPATIAL, an exception is genera

isInterpolationTypeValid()

Returns true if the named property can be interpolated using the specified keyframe interpolation type.typeAKeyframeInterpolationType enumerated value; one