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

Draw the frame at 1 second into a new pictureLuau
-- 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

NameTypeDefaultDescription
AutoRunbooleantrueOff, being nested doesn't drive it: Play doesn't run its scripts and the parent's playhead doesn't move its Time.
BlurMultipliernumber1
1 to 16
Averages this many sub-frame composites into each frame, live and in renders.
CompositeBlurnumber0
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.
CompositeShutternumber360
0 to 360
The part of each frame CompositeBlur's copies are spread over; 360 by default.
DitherbooleantrueWhen on, its layer styles add noise under one 8-bit level where they change the picture, against banding.
Fpsnumber30
1 to 240
The video's frame rate; every scrub sets Time to the nearest frame at this rate.
Lengthnumber5
at least 0.01
The video's length; it only changes when you change it.
SpeedTrackCookTrackNames 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.
RenderQualitystring""
Properties window only

Scripts

DisplaySizeVector2scripts onlyIts display size as a picture clip inside another video's Tracks; Size stays its resolution.
Offsetnumberscripts onlyWhen nested, its Time while the parent's playhead is at the clip's In point.
Speednumberscripts onlyWhen nested, how many seconds its Time moves per second of the parent's playhead inside the clip.

Advanced

FrameBlendingstringOff
Off, Frame Mix
Frame Mix cross-fades the two footage frames around the remapped time; Off shows whole frames.

row from CookProject

TimenumberThe video's current time: the tracks covering it are stacked into its picture.

Methods

NameArgumentsReturnsDescription
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.
From Sandbox 1
From CookProject 1
From CookLayer 4
From Base2D 19
From CookClip 4
From BaseImageContent 8
From Instance 22