MANUAL / SCRIPTING & EXPRESSIONS

Text and text animators (scripting)

Source Text, TextDocument fields and text animators with range and wiggly selectors in Brio Script.

Source Text

Reach it with layer.property("Source Text"), layer.text.sourceText, property("Text").property("Source Text") or matchName ADBE Text Document. Its value is a TextDocument; change it and give it back with setValue(doc) (or setValue("new text")).

var st = layer.property("Source Text");
var doc = st.value;
doc.text = doc.text.replace(/old/g, "new");
doc.fontSize = 96;
st.setValue(doc);

Source Text can't be keyframed or given an expression from a script.

TextDocument fields

FieldNotes
textLines split by \r or \n.
font / fontFamilyA family name, or a PostScript name like "Arial-BoldMT" (its Bold/Italic is applied). A font Brio can't draw throws, naming close ones.
fontStyleRead-only.
fontSize
fillColor, applyFill[r, g, b] 0–1.
strokeColor, strokeWidth, applyStroke, strokeOverFill
justificationLeft / center / right (ParagraphJustification.*).
allCaps, fauxBold, fauxItalic
tracking1/1000 em.
leading, autoLeadingRead-only.

Text animators

  1. property("Text").property("Animators").addProperty("ADBE Text Animator")
  2. animator.property("Properties").addProperty(…) for:
PropertymatchName
PositionADBE Text Position 3D
Anchor PointADBE Text Anchor Point 3D
ScaleADBE Text Scale 3D
RotationADBE Text Rotation
SkewADBE Text Skew
OpacityADBE Text Opacity
Tracking AmountADBE Text Tracking Amount
  1. animator.property("Selectors").addProperty("ADBE Text Selector") or "ADBE Text Wiggly Selector".

Also: animator.name, enabled, remove(). Animators already on a layer read back the same way. Brio creates the animator when its first property arrives; until a selector is added it selects everything, as in AE.

Range selector

SettingNotes
Start, End, OffsetKeyable.
Advanced ▸ Units
Advanced ▸ Based OnCharacters, words or lines.
Advanced ▸ Mode
Advanced ▸ AmountKeyable.
Advanced ▸ ShapeSquare, Ramp Up, Ramp Down, Triangle, Round, Smooth.
Advanced ▸ Smoothness, Randomize Order, Random Seed
Ease High / Ease LowOnly at 0.

Wiggly selector

Max Amount, Min Amount, Wiggles/Second, Correlation (keyable), Random Seed.

Not available

Fill / stroke colour animator properties, character offset, blur, expression selectors and per-character text styles throw.