API

Function AnimationGroupClipInPlace

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

    Parameters

    • animationGroup: AnimationGroup

      defines the animation group on which to operate

    • start: number

      defines the lower bound of the range

    • end: number

      defines the upper bound of the range

    • OptionaldontCloneAnimations: boolean

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

    • useFrame: boolean = false

      defines if the range is defined by frame numbers or key indices (default is false which means use key indices)

    Returns AnimationGroup

    the animationGroup stripped from all the keys outside the given range