setRovingAtKey()

app.project.item(index).layer(index).propertySpec.setRovingAtKey(keyIndex,newVal)

Description

Turns roving on or off for the specified keyframe. The first and last keyframe in a property cannot rove; if you try to set roving forone of these, the operation is ignored, and keyRoving() continues to return false.

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 nearestKey-Index method.
newVal True to turn roving on, false to turn roving off.

Returns

Nothing.

Other Tags

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