byName()

Returns the first topmost layer found in this collection with the specified name, or null if no layer with the given name is found.name A string containing

openInViewer()

Opens the footage in a Footage panel, and moves the Footage panel to front and gives it focus.NOTE: Missing and placeholder footage can be opened using this

addNull()

Creates a new null layer and adds the AVLayer object to this collection. This is the same as choosing Layer > New > Null object.duration Optional, the lengt

importFileWithDialog()

Shows an Import File dialog box. Same as the File > Import > File command.Array of Item objects created during import; or null if the user cancels the dialo

activeViewer

The Viewer object for the currently focused or active-focused viewer Composition, Layer, or Footage panel.Returns null if no viewers are open.Viewer object;

parentProperty

The property group that is the immediate parent of this property, or null if this PropertyBase is a layer.PropertyGroup object or null; read-only.

onError

The name of a callback function that is called when an error occurs. By creating a function and assigning it to this attribute, you can respond to errors sy

propertyGroup()

Gets the PropertyGroup object for an ancestor group of this property at a specified level of the parent-child hierarchy.countUp Optional. The number of leve

newProject()

Creates a new project in After Effects, replicating the File > New > New Project menu command.If the current project has been edited, the user is prompted t

elapsedSeconds

The number of seconds spent rendering this item.Integer, or null if item has not been rendered; read-only.