MANUAL / SCRIPTING & EXPRESSIONS

Masks (scripting)

Adding and editing layer masks — path, mode, feather and opacity — from Brio Script.

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.

MemberNotes
name
maskModeMaskMode.NONE, ADD, SUBTRACT, DIFFERENCE
inverted, locked
remove(), moveTo(index)
Mask PathAn AE Shape in layer space — read, setValue, setValueAtTime. Keyframable.
Mask Feather[x, y]. Brio has one feather, so the larger is used. Keyframable.
Mask Opacity0–100. Keyframable.
Mask Expansion0 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.