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
| Name | Type | Default | Description |
|---|---|---|---|
| ImageColor3 | Color3 | scripts only | Roblox's name for Color, which Luau takes as an alias. |
| ImageTransparency | number | scripts only | Roblox's name for Transparency, which Luau takes as an alias. |
| Matte | ImageContent | scripts only | Its 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. |
| MatteMode | string | scripts only | |
| Rotation | number | scripts only | Turns the layer around its AnchorPoint, in degrees. |
| SamplingMode | string | scripts only |
From Base2D 18
From Instance 22
Subclasses
