setSpatialTangentsAtKey()

app.project.item(index).layer(index).propertySpec.setSpatialTangentsAtKey(keyIndex,inTangent,outTangent)

Description

Sets the incoming and outgoing tangent vectors for the specified keyframe.
If the property value type is neither TwoD _SPATIAL nor ThreeD_SPATIAL, an exception is generated.

Parameters

keyIndex The index for the keyframe. An integer in the range [1..numKeys], as returned by the addKey or nearest-KeyIndex method.
inTangent The incoming tangent vector. An array of 2 or 3 floating-point values.
• If the property value type is PropertyValueType.TwoD_SPATIAL, the array contains 2 values.
• If the property value type is PropertyValueType.ThreeD_SPATIAL, the array contains 3 values.
outTangent (Optional) The outgoing tangent vector. If not supplied, the ‘out’ tangent is set to the inTangent value. An array of 2 or 3 floating-point values.
• If the property value type is PropertyValueType.TwoD_SPATIAL, the array contains 2 values.
• If the property value type is PropertyValueType.ThreeD_SPATIAL, the array contains 3 values.

Returns

Nothing.

Other Tags

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