CookTrack

Shape a value over time. Draw a curve or pick a wiggle, a bounce or a zoom, then wire it into any property or read it from a script.

A CookTrack is a curve of CookKeyframes. Motion picks how it moves: Bezier, Linear, or a quick Wiggle, WigglePunch, Zoom or Bounce that uses only its first two keys' times. Multiplier scales the result. Output is its value at its project's Time, a read-only reactive property with an output socket in the Nodes window, so a wire carries it into any number. track:ValueAtTime(t) reads it at any time, and the Graph Editor edits its curve.

Properties

NameTypeDefaultDescription
Invertbooleanfalse
Motionstring"Bezier"
Bezier, Linear, Wiggle, WigglePunch, WigglePunchVI Normal, WigglePunchVI, Zoom, Bounce
Bezier, Linear or a quick motion like Wiggle or Bounce, which uses only the first two keys' times as its range and ignores key values.
Multipliernumber1Scales the track's output; ValueAtTime returns the scaled value.
OutputnumberThe track's value at its project's Time; read-only, with an output socket on node cards.

Methods

NameArgumentsReturnsDescription
ValueAtTime(time: number)numberThe track's value at the given time, worked out exactly on each call; with the project's Debug on, it uses the project's Time.
From Instance 22

Subclasses