API

Function AnimationGroupClipFramesInPlace

  • Updates an existing animation, keeping only the frames that are inside a given frame range

    Parameters

    • animationGroup: AnimationGroup

      defines the animation group on which to operate

    • fromFrame: number

      defines the lower bound of the range

    • toFrame: number

      defines the upper bound of the range

    • OptionaldontCloneAnimations: boolean

      defines whether or not the animations should be cloned before clipping the frames. Default is false, so animations will be cloned

    Returns AnimationGroup

    the animationGroup stripped from all the frames outside the given range