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. Choose Bezier, Linear, or a quick Wiggle, WigglePunch, Zoom or Bounce that uses only its first two keys' times. Invert flips it to 1 minus its value, and Multiplier scales the result. Output is its value at its project's Time, read-only; a wire from its socket in the Nodes window carries it into any number. track:ValueAtTime(t) reads it at any time, and the Graph Editor edits its curve.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Invert | boolean | false | Every reader gets 1 minus the value, times Multiplier; the keys stay as set. |
| Motion | string | 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. |
| Multiplier | number | 1 any value | Scales the track's output; ValueAtTime returns the scaled value. |
| Output | number | The track's value at its project's Time; read-only, with an output socket on node cards. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| ValueAtTime | (time: number) | number | The 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
