Function AnimationGroupClipFrames
-
AnimationGroupClipFrames(
sourceAnimationGroup: AnimationGroup,
fromFrame: number,
toFrame: number,
name?: string,
dontCloneAnimations?: boolean,
): AnimationGroupParameters
- sourceAnimationGroup: 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
Optionalname: stringdefines the name of the new animation group. If not provided, use the same name as animationGroup
OptionaldontCloneAnimations: booleandefines whether or not the animations should be cloned before clipping the frames. Default is false, so animations will be cloned
Returns AnimationGroup
a new animation group stripped from all the frames outside the given range
- sourceAnimationGroup: AnimationGroup
Creates a new animation, keeping only the frames that are inside a given frame range