KeyFrame
Overview
KeyFrame is a class in Aspose.3d for Python.
KeyFrame and KeyframeSequence classes enable time‑based animation curves with support for constant, linear, Bézier, B‑spline, cardinal spline, and TCB spline interpolation.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
time | float | Read | Specifies the timestamp of the keyframe in seconds |
value | float | Read | Holds the animated value at this keyframe |
interpolation | Interpolation | Read | Defines the interpolation mode used between keyframes |
tangent_weight_mode | WeightedMode | Read | Selects how tangent weights are applied |
step_mode | StepMode | Read | Indicates whether the keyframe uses step (constant) interpolation |
next_in_tangent | 'Vector2' | Read | Provides the incoming tangent vector for the following segment |
out_tangent | 'Vector2' | Read | Provides the outgoing tangent vector from this keyframe |
out_weight | float | Read | Sets the weight of the outgoing tangent |
next_in_weight | float | Read | Sets the weight of the incoming tangent for the next segment |
tension | float | Read | Controls the tension parameter of the spline at this keyframe |
continuity | float | Read | Adjusts the continuity of the spline at this keyframe |
bias | float | Read | Modifies the bias of the spline curve at this keyframe |
independent_tangent | bool | Read | Determines if tangents are independent of each other |
flat | bool | Read | Forces a flat (zero curvature) segment at this keyframe |
time_independent_tangent | bool | Read | Makes the tangent unaffected by time scaling |
Methods
| Signature | Description |
|---|---|
__init__(curve: 'KeyframeSequence', time: float) |