keyInSpatialTangent()

app.project.item(index).layer(index).propertySpec.keyInSpatialTangent(keyIndex)

Description

Returns the incoming spatial tangent for the specified keyframe, if the named property is spatial (that is, the value type is TwoD _SPATIAL or ThreeD_SPATIAL).

Parameters

ke y Ind e x The index for the keyframe. An integer in the range [1..numKeys], as returned by the add Ke y or ne ar estKe y -Ind e x method.

Returns

Array of floating-point values:

• If the propertyvalue type is PropertyValueType.TwoD_SPATIAL , the array contains 2 floating-point values.
• If the propertyvalue type is PropertyValueType.ThreeD_SPATIAL , the array contains 3 floating-point values.
• If the property value type is neither of these types, an exception is generated.

Other Tags

Posted in Property object and tagged , , , , , , , , , .