Appearance
spool / TransformTrack
Class: TransformTrack โ
Defined in: plugins/clip/track/transform.ts:50
Animates a display model's transform: move, scale, rotateTo and spin. Spins are frame-baked; everything else tweens natively unless .bake() is set.
Implements โ
Constructors โ
Constructor โ
new TransformTrack(
target):TransformTrack
Defined in: plugins/clip/track/transform.ts:58
Parameters โ
target โ
Returns โ
TransformTrack
Accessors โ
mode โ
Get Signature โ
get mode():
TrackMode
Defined in: plugins/clip/track/transform.ts:119
Returns โ
Implementation of โ
Methods โ
bake() โ
bake():
this
Defined in: plugins/clip/track/transform.ts:87
Force per-tick baked frames even for an otherwise-tweenable track.
Returns โ
this
emitFrame() โ
emitFrame(
ctx,f,period,duration,interp):void
Defined in: plugins/clip/track/transform.ts:156
Frame mode: emit the commands for frame index f, reached over interp ticks.
Parameters โ
ctx โ
FunctionContext
f โ
number
period โ
number
duration โ
number
interp โ
number
Returns โ
void
Implementation of โ
emitSmooth() โ
emitSmooth(
ctx,duration,reverse):void
Defined in: plugins/clip/track/transform.ts:195
Smooth mode: emit the one-shot native tween toward the end pose (or base if reverse).
Parameters โ
ctx โ
FunctionContext
duration โ
number
reverse โ
boolean
Returns โ
void
Implementation of โ
empty() โ
empty():
boolean
Defined in: plugins/clip/track/transform.ts:101
A track with nothing to animate (an untouched primary model track); skipped.
Returns โ
boolean
Implementation of โ
length() โ
length():
number
Defined in: plugins/clip/track/transform.ts:124
Highest absolute keyframe tick this track defines (0 if it spans the clip duration).
Returns โ
number
Implementation of โ
move() โ
move(
delta):this
Defined in: plugins/clip/track/transform.ts:61
Moves every member by delta blocks over the clip.
Parameters โ
delta โ
Vec3
Returns โ
this
period() โ
period(
duration):number
Defined in: plugins/clip/track/transform.ts:151
Distinct frame count for frame mode (the clip cycles frame_(t % period)).
Parameters โ
duration โ
number
Returns โ
number
Implementation of โ
revolution() โ
revolution():
number|undefined
Defined in: plugins/clip/track/transform.ts:128
If this track is a pure periodic spin, its revolution frame count (for snap).
Returns โ
number | undefined
Implementation of โ
rotateTo() โ
rotateTo(
q):this
Defined in: plugins/clip/track/transform.ts:71
Turns every member to rotation q over the clip.
Parameters โ
q โ
Quat
Returns โ
this
scale() โ
scale(
to):this
Defined in: plugins/clip/track/transform.ts:66
Scales every member to to over the clip.
Parameters โ
to โ
Vec3
Returns โ
this
smooth() โ
smooth():
this
Defined in: plugins/clip/track/transform.ts:92
Force the native-interpolation path (rejected if the track spins).
Returns โ
this
spin() โ
spin(
axis,degPerTick):this
Defined in: plugins/clip/track/transform.ts:76
Spins the model about its pivot on axis, at degPerTick degrees per tick.
Parameters โ
axis โ
Axis
degPerTick โ
number
Returns โ
this
stride() โ
stride():
number
Defined in: plugins/clip/track/transform.ts:134
Most ticks one baked keyframe may span; native interpolation fills the gap.
Returns โ
number