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