KeyframeSequence
General
KeyframeSequence és una classe en Aspose.3D FOSS per a .NET.
KeyframeSequence gestiona els quadres clau d’animació, oferint mètodes per afegir, eliminar, recuperar i interpolar cadres claus, i exposant les propietats PropertyName i KeyFrames.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
PropertyName | string | Read/Write | Gets or sets the name of the animated property |
KeyFrames | List<KeyFrame> | Read | Provides the list of keyframes in the sequence |
PreExtrapolation | Extrapolation | Read/Write | Gets or sets the extrapolation behavior before the first keyframe |
PostExtrapolation | Extrapolation | Read/Write | Gets or sets the extrapolation behavior after the last keyframe |
Mètodes
| Signature | Description |
|---|---|
KeyframeSequence() | Initializes a sequence for the specified property name |
KeyframeSequence(propertyName: string) | |
GetKeyFrameAtTime(time: float) | Returns the keyframe whose time matches the given value |
AddKeyFrame(keyFrame: KeyFrame) | Appends the provided keyframe to the sequence |
RemoveKeyFrame(keyFrame: KeyFrame) | Deletes the specified keyframe from the sequence |
Interpolate(time: float) | Computes interpolated values at the given time based on keyframes |