Application related methods


static, readonly hasFilesAndNetworkAccess :boolean

Has scripting file and network authorization

static, readonly version :float

The After Effects version


static askFilesAndNetworkAccess(showAlertopt, messageopt) → {boolean}

Asks the user to check the file and network security pref if not already set. Opens the general prefrences of After Effects.
Name Type Attributes Default Description
showAlert boolean <optional>
true Wether to display an alert before opening the preferences
message string <optional>
The Duduf After Effects scripting framework needs to be allowed to write files\nPlease, check the box called 'Allow Scripts to write files...' in the general preferences of After Effects. The message to display in the alert.
boolean - Wether the preference has been set

static copy()

Copies the selection (runs the copy menu command)
Copies the selection with property links (runs the copy menu command)
Only on versions of After Effects greater than 11.0 (CS6)
On CS6 and below, a standard copy will be done.

static cut()

Cuts the selection (runs the cut menu command)

static duplicate()

Duplcates the selection (runs the duplicate menu command)

static getAEVersionName(versionAsFloatopt) → {string}

Gets the public name of a version of After Effects (like CC2015.3 for version 13.8)
Name Type Attributes Description
versionAsFloat float <optional>
The version as a float. If not provided, will default to the current version of the running instance of After Effects.
string - The version name.

static paste()

Pastes the selection (runs the paste menu command)