CookLayer

Every picture clip in a video, from a title to a camera shot to a whole other video, moves, fades, tints and blends the same way.

CookLayer is the abstract base of a CookVideo's picture clips. Position, AnchorPoint, Size, Scale and Rotation place it, Scale and Rotation working around the AnchorPoint; Transparency fades it and Color tints it. Its row sets the stacking order, BlendMode picks how it lands on the layers below (Stencil and Silhouette cut them), and an optional Track Matte decides what shows. Masks and layer styles go under it as children.

Properties

NameTypeDefaultDescription
ImageColor3Color3scripts onlyRoblox's name for Color, which Luau takes as an alias.
ImageTransparencynumberscripts onlyRoblox's name for Transparency, which Luau takes as an alias.
MatteImageContentscripts onlyIts track matte: any image, such as another track or an AOV; a sibling track is sampled through its own transform, anything else stretches over the canvas.
MatteModestringscripts only
Rotationnumberscripts onlyTurns the layer around its AnchorPoint, in degrees.
SamplingModestringscripts only
From Base2D 18
From CookClip 4
From BaseImageContent 6
From Instance 22

Subclasses