Layer Mask
On this page
Part of every layer: FGradeLayer::Mask (FGradeMask). Manual: Layer Mask.
Parameters
Where a layer applies. Positions are in normalised view coordinates (0,0 top-left .. 1,1 bottom-right).
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Type | EGradeMaskType | None | ||
| Invert | Mask.Invert | on/off | off | |
| Softness | Mask.Softness | 0..1 | 0.2 | ...fading out over this distance on both sides (also used by ColorRange). |
Linear
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Start | Mask.Start.X/Y | 2D vector (X, Y) | (0.5, 0) | |
| End | Mask.End.X/Y | 2D vector (X, Y) | (0.5, 0.6) |
Radial
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Center | Mask.Center.X/Y | 2D vector (X, Y) | (0.5, 0.5) | |
| Radius | Mask.Radius.X/Y | 2D vector (X, Y) | (0.3, 0.3) | Half size of the ellipse (fraction of the view width/height). |
| Feather | Mask.Feather | 0..1 | 0.5 | Softness of the radial edge, 0..1. |
Luminance
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Luminance Min | Mask.LuminanceMin | 0..1 | 0.5 | Luminance range (0..1) fully selected... |
| Luminance Max | Mask.LuminanceMax | 0..1 | 1 |
Color Range
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Color | Mask.Color.R/G/B/A | colour | (1, 0.5, 0.2) | |
| Tolerance | Mask.Tolerance | 0..1 | 0.15 | Colour distance (0..1) fully selected. |
Depth
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Depth Near | Mask.DepthNear | >= 0 cm (slider to 100000) | 2000 | Depth: distance from the camera (cm) where the selection is full... |
| Depth Far | Mask.DepthFar | >= 0 cm (slider to 1000000) | 1000000 | ...up to this distance (cm); beyond it fades out over Softness x the range. Set very far to select "everything beyond Near". |
Height
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Height Min | Mask.HeightMin | number cm | -100000 | Height: world Z range (cm) fully selected (fades over Softness x the range). |
| Height Max | Mask.HeightMax | number cm | 200 |
Object
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Use Stencil | Mask.UseStencil | on/off | off | Object: match a Custom Stencil value (1..255) instead of any object rendered to Custom Depth. |
| Stencil Value | Mask.StencilValue | 1..255, integer | 1 | (Editable when Use Stencil is on.) |
| Edge Softness | Mask.EdgeSoftness | 0..32 | 1.5 | Grow/soften the object mask edge in pixels (at 1080 lines). |
Texture
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Mask Texture | texture | none | Texture: the mask (white = full). Stretched over the view. Painted in GRADE Studio or imported. |
World Shape
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| World Shape | EGradeWorldShape | Sphere | ||
| Tracker Id | name | Follows the actor that has a GRADE Tracker component with this id (or the actor tag with this name); None = fixed in the world at ShapeOffset. Ids (not actor references) so presets stay level independent. | ||
| Track Socket | name | Optional bone or socket of the tracked actor's skeletal / static mesh (None = the actor root). | ||
| Shape Offset | Mask.ShapeOffset.X/Y/Z | vector (X, Y, Z) | FVector::ZeroVector | Shape centre relative to the tracked transform (world space when TrackerId is None), cm. |
| Shape Rotation | rotator | FRotator::ZeroRotator | ||
| Shape Extent | Mask.ShapeExtent.X/Y/Z | vector (X, Y, Z) | (150, 150, 150) | Half size (box), radius (sphere: X; capsule / cylinder: X = radius, Z = half height), cm. |
| Shape Falloff | Mask.ShapeFalloff | >= 0 cm (slider to 2000) | 75 | Soft edge width outside the shape, cm. |
| Follow Rotation | Mask.FollowRotation | on/off | on | The shape rotates with the tracked transform (off = only follows its position). |
Actors
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Mask Actors | list of actor | Actors: the actors selected by the mask (GRADE renders them to Custom Depth with its own stencil value). | ||
| Mask Actor Tag | name | Actors: every actor with this tag (Actor > Tags) is selected too, spawned ones included (None = off). | ||
| Mask Include Attached | Mask.MaskIncludeAttached | on/off | on | Actors: also select the actors attached to the listed / tagged ones (weapons, hair, props). |
Normal
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Normal Direction | Mask.NormalDirection.X/Y/Z | vector (X, Y, Z) | (0, 0, 1) | Normal: the direction the selected surfaces face (world space; camera space when Camera Relative: X forward, Y right, Z up). |
| Normal Camera Relative | Mask.NormalCameraRelative | on/off | off | Normal: Normal Direction is relative to the camera instead of the world. |
| Normal Angle | Mask.NormalAngle | 0..180 deg | 45 | Normal: surfaces within this angle of the direction are fully selected; the selection fades over Softness x 90 degrees. |
Facing
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Facing Min | Mask.FacingMin | 0..1 | 0 | Facing: facing range fully selected, 0 = grazing edge (rim) .. 1 = facing the camera (fades over Softness). |
| Facing Max | Mask.FacingMax | 0..1 | 0.35 | Facing: upper end of the fully selected facing range (0 = edge .. 1 = facing the camera). |
Lighting
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Lighting Min | Mask.LightingMin | 0..1 | 0 | Lighting: lighting range fully selected, 0 = darkest shadow .. 1 = fully lit (fades over Softness). |
| Lighting Max | Mask.LightingMax | 0..1 | 0.3 | Lighting: upper end of the fully selected lighting range (0 = darkest shadow .. 1 = fully lit). |
Motion
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Motion Threshold | Mask.MotionThreshold | >= 0 (slider to 32) | 0.5 | Motion: pixels moving faster than this start to be selected (pixels per frame at 1080 lines)... |
| Motion Range | Mask.MotionRange | >= 0.01 (slider to 64) | 4 | ...and are fully selected this much faster (pixels per frame at 1080 lines). |
Noise
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Noise Scale | Mask.NoiseScale | >= 1 (slider to 5000) | 300 | Noise: size of the noise features (cm in the world; pixels at 1080 lines in screen space). |
| Noise Contrast | Mask.NoiseContrast | 0..1 | 0.5 | Noise: 0 = soft clouds .. 1 = hard black / white patches. |
| Noise Speed | Mask.NoiseSpeed | >= 0 (slider to 10) | 0 | Noise: animation speed (noise features per second, 0 = still). |
| Noise Seed | Mask.NoiseSeed | integer | 0 | Noise: changes the pattern. |
| Noise Screen Space | Mask.NoiseScreenSpace | on/off | off | Noise: noise fixed on the screen instead of in the world (also works in Image mode). |
Paint
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Paint | FGradeMaskPaint | Paint: the painted mask (Screen image or World brush dabs), edited live in GRADE Studio. White = selected. |
Mask Layer (FGradeMaskLayer)
One extra component of a layer's mask stack (combined in order after the layer's base Mask).
| Parameter | Values | Default | Description |
|---|---|---|---|
| Name | text | Display name in the Mask tab (empty = the type name). | |
| Enabled | on/off | on | Off = this component is skipped. |
| Op | EGradeMaskOp | Add | How this component combines with the result of the components above it. |
| Opacity | 0..1 | 1 | Strength of this component (0 = no change to the stack, 1 = full). |
Nested settings: Mask (FGradeMask): The component (any mask type; its Invert applies before the op).
Entries of this list are not addressable by Blueprint paths; edit them in GRADE Studio, the Details panel or with the dedicated Blueprint helpers.
Enumerations
Mask Type (EGradeMaskType)
| Value | Meaning |
|---|---|
| None | The whole image. |
| Linear | Linear gradient from Start (full) to End (none). |
| Radial | Ellipse around Center (full inside). |
| Luminance | Selects a luminance range. |
| Color Range | Selects pixels close to a colour. |
| Depth | Selects a distance range from the camera (scene depth; full in Image mode). |
| Sky | Selects the sky (pixels at the far plane). |
| Height | Selects a world height range (reconstructed from scene depth). |
| Object | Selects objects rendered to Custom Depth (optionally a Custom Stencil value): "only these actors". |
| Texture | A painted / imported screen-space mask texture (fixed cameras, captures, images). |
| World Shape | A soft 3D shape in the world (sphere, box, capsule, cylinder) that can follow an actor / bone / socket (scene depth; full in Image mode). |
| Actors | Listed actors / actors with a tag (GRADE writes a Custom Depth-Stencil value 216..240 on them; full in Image mode). |
| Normal | Surfaces facing a direction (GBuffer world normal): world up = tops (snow, moss), down, or camera relative. |
| Facing | Angle between the surface and the view: object edges / rim (0) .. surfaces facing the camera (1). |
| Lighting | Lit vs shadowed areas (scene colour over GBuffer base colour; full in Image mode). |
| Motion | Moving pixels (velocity buffer; full in Image mode). |
| Noise | Procedural noise in the world (or on the screen) to break masks up. |
| Paint | Painted mask stored in the layer (Screen image or World brush dabs), no texture asset. |
World Shape (EGradeWorldShape)
Shape of a World Shape mask.
| Value | Meaning |
|---|---|
| Sphere | - |
| Box | - |
| Capsule | - |
| Cylinder | - |
Mask Op (EGradeMaskOp)
How a mask component combines with the components above it in the mask stack.
| Value | Meaning |
|---|---|
| Add | Union: max(a, b). |
| Subtract | Removes the component: a * (1 - b). |
| Intersect | Only where both select: min(a, b). |
| Difference | Where exactly one selects: abs(a - b). |
Generated from the GRADE C++ headers. Back to the reference index.