Masks
layer.mask or layer.property("Masks") (ADBE Mask Parade) lists the layer's masks by name or 1-based index. addProperty("Mask") (or "ADBE Mask Atom") adds one. A new mask starts as a 100 px square until you set its path.
| Member | Notes |
|---|---|
name | |
maskMode | MaskMode.NONE, ADD, SUBTRACT, DIFFERENCE |
inverted, locked | |
remove(), moveTo(index) | |
Mask Path | An AE Shape in layer space — read, setValue, setValueAtTime. Keyframable. |
Mask Feather | [x, y]. Brio has one feather, so the larger is used. Keyframable. |
Mask Opacity | 0–100. Keyframable. |
Mask Expansion | 0 only. |
var m = layer.property("Masks").addProperty("Mask");
var s = new Shape();
s.vertices = [[0, 0], [200, 0], [200, 200], [0, 200]];
s.closed = true;
m.property("Mask Path").setValue(s);
m.maskMode = MaskMode.ADD;
Not available
Mask expansion other than 0, and the Intersect, Lighten and Darken modes.