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

NameTypeAccessDescription
timefloatReadSpecifies the timestamp of the keyframe in seconds
valuefloatReadHolds the animated value at this keyframe
interpolationInterpolationReadDefines the interpolation mode used between keyframes
tangent_weight_modeWeightedModeReadSelects how tangent weights are applied
step_modeStepModeReadIndicates whether the keyframe uses step (constant) interpolation
next_in_tangent'Vector2'ReadProvides the incoming tangent vector for the following segment
out_tangent'Vector2'ReadProvides the outgoing tangent vector from this keyframe
out_weightfloatReadSets the weight of the outgoing tangent
next_in_weightfloatReadSets the weight of the incoming tangent for the next segment
tensionfloatReadControls the tension parameter of the spline at this keyframe
continuityfloatReadAdjusts the continuity of the spline at this keyframe
biasfloatReadModifies the bias of the spline curve at this keyframe
independent_tangentboolReadDetermines if tangents are independent of each other
flatboolReadForces a flat (zero curvature) segment at this keyframe
time_independent_tangentboolReadMakes the tangent unaffected by time scaling

Methods

SignatureDescription
__init__(curve: 'KeyframeSequence', time: float)