AnimationClip
new AnimationClip(name?, duration?, tracks?)THREE equivalent: THREE.AnimationClip
Named collection of keyframe tracks representing one animation sequence. Duration is auto-computed from tracks when passed as -1.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
name |
string |
Clip name used for lookup. |
duration |
number |
Length in seconds. |
tracks |
Track[] |
Keyframe tracks this clip contains. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
AnimationClip.findByName(clips: AnimationClip[], name: string): AnimationClip|undefined |
Static helper. Returns the first clip with the given name. |
resetDuration(): void |
Recomputes duration from the maximum keyframe time across all tracks. |
trim(): void |
Removes keyframes outside [0, duration] from all tracks. |
optimize(): void |
Removes redundant keyframes where the value does not change from the previous key. |