MANUAL / SCRIPTING & EXPRESSIONS

Script globals and app

The global names every Brio Script can use, and the app object.

Globals

NameWhat it is
appThe application (below).
$.writeln(...), $.write(...)Print to the Script Console.
alert(message)Prints to the Script Console. Real dialogs are ScriptUI windows.
confirm(message)Returns true.
prompt(message, default)Returns default.
KeyframeInterpolationType.LINEAR / BEZIER / HOLDFor setInterpolationTypeAtKey.
new KeyframeEase(speed, influence)For setTemporalEaseAtKey.
new TextDocument(text)For Source Text and layers.addText.
ParagraphJustification.LEFT_JUSTIFY / CENTER_JUSTIFY / RIGHT_JUSTIFY, PropertyValueType.*AE's enums.
CompItem, AVLayer, ShapeLayer, TextLayer, CameraLayer, LightLayer, Property, PropertyGroupFor instanceof checks. They can't be constructed.
$.fileNameThe script's file name.
File, FolderExist, but can't read or write anything. File.openDialog(), file.openDlg() and Folder.selectDialog() show Brio's file dialog and return what you pick.

Not available: system.callSystem, $.evalFile, #include at run time.

app

MemberNotes
app.projectThe project. See Project, comps and footage.
app.beginUndoGroup(name) / app.endUndoGroup()Names the run's undo step. The run is always one step.
app.settings.saveSetting(section, key, value), getSetting, haveSettingSaved per script, between runs.
app.version"Brio Script 1.0"
app.executeCommand, app.findMenuCommandId, app.scheduleTaskThrow — no equivalent.