Appearance
spool / TpTrack
Class: TpTrack โ
Defined in: plugins/clip/track/tp.ts:14
Teleports a selector along keyframes. One tp per tick by default.
With glide, teleports only on keyframes and sets teleport_duration so the client tweens: fewer commands and smoother. Display entities only.
Implements โ
Constructors โ
Constructor โ
new TpTrack(
selector,keys,glide?):TpTrack
Defined in: plugins/clip/track/tp.ts:17
Parameters โ
selector โ
Selector
keys โ
readonly Keyframe<Vec3>[]
glide? โ
boolean = false
Returns โ
TpTrack
Properties โ
mode โ
readonlymode:TrackMode="frame"
Defined in: plugins/clip/track/tp.ts:15
Implementation of โ
Methods โ
emitFrame() โ
emitFrame(
ctx,f):void
Defined in: plugins/clip/track/tp.ts:50
Frame mode: emit the commands for frame index f, reached over interp ticks.
Parameters โ
ctx โ
FunctionContext
f โ
number
Returns โ
void
Implementation of โ
emitSmooth() โ
emitSmooth():
void
Defined in: plugins/clip/track/tp.ts:77
Smooth mode: emit the one-shot native tween toward the end pose (or base if reverse).
Returns โ
void
Implementation of โ
empty() โ
empty():
boolean
Defined in: plugins/clip/track/tp.ts:32
A track with nothing to animate (an untouched primary model track); skipped.
Returns โ
boolean
Implementation of โ
length() โ
length():
number
Defined in: plugins/clip/track/tp.ts:35
Highest absolute keyframe tick this track defines (0 if it spans the clip duration).
Returns โ
number
Implementation of โ
period() โ
period(
duration):number
Defined in: plugins/clip/track/tp.ts:40
Distinct frame count for frame mode (the clip cycles frame_(t % period)).
Parameters โ
duration โ
number
Returns โ
number
Implementation of โ
revolution() โ
revolution():
undefined
Defined in: plugins/clip/track/tp.ts:43
If this track is a pure periodic spin, its revolution frame count (for snap).
Returns โ
undefined
Implementation of โ
stride() โ
stride():
number
Defined in: plugins/clip/track/tp.ts:46
Most ticks one baked keyframe may span; native interpolation fills the gap.
Returns โ
number