Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 637 Bytes

File metadata and controls

29 lines (16 loc) · 637 Bytes

document.distributeToKeyframes()

Availability

Adobe Animate.

Usage

document.distributeToKeyframes()

Parameters

None.

Returns

Nothing.

Description

Method; performs a distribute-to-keyframes operation on the current selection—equivalent to selecting Distribute to KeyFrames. A new keyframe is created for every object. New keyframes are created on the active layer immediately after the active frame

Example

The following example distributes the current selection to keyframes:
if(fl.getDocumentDOM().canDistributeToKeyframes()) fl.getDocumentDOM().distributeToKeyframes();