Skip to content

spool / TpTrack

Class: TpTrack

Defined in: plugins/clip/track.ts:236

Teleports a selector along a positional path over keyframes - a camera dolly or any entity move. Always baked (one tp per tick).

Implements

Constructors

Constructor

new TpTrack(selector, keys): TpTrack

Defined in: plugins/clip/track.ts:239

Parameters

selector

Selector

keys

readonly Keyframe<Vec3>[]

Returns

TpTrack

Properties

mode

readonly mode: TrackMode = "frame"

Defined in: plugins/clip/track.ts:237

Implementation of

Track.mode

Methods

emitFrame()

emitFrame(ctx, f): void

Defined in: plugins/clip/track.ts:259

Frame mode: emit the commands for frame index f.

Parameters

ctx

FunctionContext

f

number

Returns

void

Implementation of

Track.emitFrame


emitSmooth()

emitSmooth(): void

Defined in: plugins/clip/track.ts:267

Smooth mode: emit the one-shot native tween toward the end pose (or base if reverse).

Returns

void

Implementation of

Track.emitSmooth


empty()

empty(): boolean

Defined in: plugins/clip/track.ts:246

A track with nothing to animate (an untouched primary model track); skipped.

Returns

boolean

Implementation of

Track.empty


length()

length(): number

Defined in: plugins/clip/track.ts:249

Highest absolute keyframe tick this track defines (0 if it spans the clip duration).

Returns

number

Implementation of

Track.length


period()

period(duration): number

Defined in: plugins/clip/track.ts:252

Distinct frame count for frame mode (the clip cycles frame_(t % period)).

Parameters

duration

number

Returns

number

Implementation of

Track.period


revolution()

revolution(): undefined

Defined in: plugins/clip/track.ts:255

If this track is a pure periodic spin, its revolution frame count (for snap).

Returns

undefined

Implementation of

Track.revolution

Released under the MIT License · Credits