CookVideo
Make a whole video in one object. Film your scenes, stack text, shapes and code over them, add sound, then play it, render it or drop it inside another video.
A CookVideo is a CookProject, a Sandbox and an image at once. Its Tracks folder holds every row; each frame, the clips under the playhead are stacked into its picture, top row on top, at its Size and Fps. SpeedTrack names a speed curve its keys, clips, sims and scripts run on, while the playhead keeps real time. CompositeBlur renders each frame several times and averages them, so everything blurs with its motion. Edit it in the Cook window.
Example
-- a video you inserted, renamed Clip
local video = Root.Clip
local dst = Instance.new("ImageContent", Root)
dst.Name = "Dst"
dst.Size = Vector2.new(1280, 720)
video:RenderAt(1, Root.Dst)Properties
Video
| Name | Type | Default | Description |
|---|---|---|---|
| AutoRun | boolean | true | Off, being nested doesn't drive it: Play doesn't run its scripts and the parent's playhead doesn't move its Time. |
| BlurMultiplier | number | 1 1 to 16 | Averages this many sub-frame composites into each frame, live and in renders. |
| CompositeBlur | number | 0 0 to 32 | Renders each frame that many times over CompositeShutter and averages them, so everything blurs with its motion; 0 is off, renders only. |
| CompositeShutter | number | 360 0 to 360 | The part of each frame CompositeBlur's copies are spread over; 360 by default. |
| Dither | boolean | true | When on, its layer styles add noise under one 8-bit level where they change the picture, against banding. |
| Fps | number | 30 1 to 240 | The video's frame rate; every scrub sets Time to the nearest frame at this rate. |
| Length | number | 5 at least 0.01 | The video's length; it only changes when you change it. |
| SpeedTrack | CookTrack | Names a speed curve among its rows: its keys, clips, animations, sims and scripts run on the curve's integral while the playhead keeps real time. | |
| RenderQuality | string | "" Properties window only |
Scripts
| DisplaySize | Vector2 | scripts only | Its display size as a picture clip inside another video's Tracks; Size stays its resolution. |
| Offset | number | scripts only | When nested, its Time while the parent's playhead is at the clip's In point. |
| Speed | number | scripts only | When nested, how many seconds its Time moves per second of the parent's playhead inside the clip. |
Advanced
| FrameBlending | string | Off Off, Frame Mix | Frame Mix cross-fades the two footage frames around the remapped time; Off shows whole frames. |
row from CookProject
| Time | number | The video's current time: the tracks covering it are stacked into its picture. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| RenderAt | (time: number, target: ImageContent) | () | Draws the video's frame at a time into any image, scaled to its size, in one pass that returns at once. |
| RenderAtAsync | (time: number, target: ImageContent) | () | Like RenderAt, but yields until every covering Rendered picture has its Samples. |
