LayerCollection
Properties
Instance Methods
add
Returns: AVLayer
Since: 27.0
Creates a new AVLayer object containing the specified item, and adds it to this collection. The new layer honors the "Create Layers at Composition Start Time" preference. This method generates an exception if the item cannot be added as a layer to this CompItem.
Parameters
addBoxText
Returns: TextLayer
Since: 27.0
Creates a new paragraph (box) text layer with TextDocument.lineOrientation set to LineOrientation.HORIZONTAL and adds the new TextLayer object to this collection. To create a point text layer, use the LayerCollection.addText() method.
Parameters
addCamera
Returns: CameraLayer
Since: 27.0
Creates a new camera layer and adds the CameraLayer object to this collection. The new layer honors the "Create Layers at Composition Start Time" preference.
Parameters
addLight
Returns: LightLayer
Since: 27.0
Creates a new light layer and adds the LightLayer object to this collection. The new layer honors the "Create Layers at Composition Start Time" preference.
Parameters
addNull
Returns: AVLayer
Since: 27.0
Creates a new null layer and adds the AVLayer object to this collection. This is the same as choosing Layer > New > Null Object.
Parameters
addParametricMesh
Returns: ParametricMeshLayer
Since: 27.0
Creates a new parametric 3D mesh layer.
Parameters
addShape
Returns: ShapeLayer
Since: 27.0
Creates a new ShapeLayer object for a new, empty Shape layer. Use the ShapeLayer object to add properties, such as shape, fill, stroke, and path filters. This is the same as using a shape tool in "Tool Creates Shape" mode. Tools automatically add a vector group that includes Fill and Stroke as specified in the tool options.
addSolid
Returns: AVLayer
Since: 27.0
Creates a new SolidSource object, with values set as specified; sets the new SolidSource as the mainSource value of a new FootageItem object, and adds the FootageItem to the project. Creates a new AVLayer object, sets the new Footage Item as its source, and adds the layer to this collection.
Parameters
addText
Returns: AVLayer
Since: 27.0
Creates a new point text layer with TextDocument.lineOrientation set to LineOrientation.HORIZONTAL and adds the new TextLayer object to this collection. To create a paragraph (box) text layer, use LayerCollection.addBoxText().
Parameters
addVerticalBoxText
Returns: TextLayer
Since: 27.0
Creates a new paragraph (box) text layer with TextDocument.lineOrientation set to LineOrientation.VERTICAL_RIGHT_TO_LEFT and adds the new TextLayer object to this collection. To create a point text layer, use the LayerCollection.addText() or LayerCollection.addVerticalText() methods.
Parameters
addVerticalText
Returns: AVLayer
Since: 27.0
Creates a new point text layer with TextDocument.lineOrientation set to LineOrientation.VERTICAL_RIGHT_TO_LEFT and adds the new TextLayer object to this collection. To create a paragraph (box) text layer, use the LayerCollection.addBoxText() or LayerCollection.addVerticalBoxText() methods.
Parameters
byIndex
Returns: Layer
Since: 27.0
Retrieves an object in the collection by its index number. The first object is at index 1.
Parameters
byName
Returns: Layer
Since: 27.0
Returns the first (topmost) layer found in this collection with the specified name, or null if no layer with the given name is found.
Parameters
precompose
Returns: CompItem
Since: 27.0
Creates a new CompItem object and moves the specified layers into its layer collection. It removes the individual layers from this collection, and adds the new CompItem to this collection.
Parameters
relativeTo
Returns: Layer
Since: 27.0
Returns the layer whose position is found by adding relIndex to otherLayer's index.