AVLayer object

app.project.itemindex.layerindex

Description

The AVLayer object provides an interface to those layers that contain AVItem objects composition layers,
footage layers, solid layers, text layers, and sound layers.

• AVLayer is a subclass of Layer. All methods and attributes of Layer, in addition to those listed below, are
available when working with AVLayer.
• AVLayer is a base class for TextLayer, so AVLayer attributes and methods are available when working with
TextLayer objects.

AE Properties

Different types of layers have different AE properties. AVLayer has the following properties and property
groups:

Marker
Time Remap
Motion Trackers
Masks
Effects
Transform

Anchor Point
Position
Scale
Orientation
X Rotation
Y Rotation
Rotation
Opacity

Layer Styles
Geometry Options // Ray -traced 3D
Material Options

Casts Shadows
Light Transmission
Accepts Shadows
Accepts Lights
Appears in Reflections // Ray-traced 3D
Ambient
Diffuse
Specular Intensity
Specular Shininess
Metal
Reflection Intensity // Ray-traced 3D
Reflection Sharpness // Ray-traced 3D
Reflection Rolloff // Ray-traced 3D
Transparency // Ray -traced 3D
Transparency Rolloff // Ray-traced 3D
Index of Refraction // Ray-traced 3D

Audio
Audio Levels

Example

If the first item in the project is a CompItem, andthe first layer of that CompItem is an AVLayer,the following
sets the layerquality, startTime, and inPoint.
var firstLayer = app.project.item1.layer1;
firstLayer.quality = LayerQuality.BEST;
firstLayer.startTime = 1;
firstLayer.inPoint = 2;

Attributes

Attribute Reference Description
source AVLayer source attribute” The source item for this layer.
isNameFromSource “AVLayer isNameFromSource attribute” When true, the layer has no expressly set name,
but contains a named source.
height “AVLayer height attribute” The height of the layer.
width “AVLayer width attribute” The width of the layer.
audioEnabled “AVLayer audioEnabled attribute” When true, the layer’s audio is enabled.
motionBlur “AVLayer motionBlur attribute” When true, the layer’s motion blur is enabled.
effectsActive “AVLayer effectsActive attribute” When true, the layer’s effects are active.
adjustmentLayer “AVLayer adjustmentLayer attribute” When true, this is an adjustment layer.
guideLayer “AVLayer guideLayer attribute” When true, this is a guide layer.
threeDLayer “AVLayer threeDLayer attribute” When true, this is a 3D layer.
threeDPerChar “AVLayer threeDPerChar attribute” When true, 3D is set on a per-character basis in this text layer.
environmentLayer “AVLayer environmentLayer attribute” When true, this is an environment layer.
canSetCollapseTransformation “AVLayer canSetCollapseTransformation attribute” When true, it is legal to change the value of collapseTransformation.
collapseTransformation “AVLayer collapseTransformation attribute” When true, collapse transformation is on.
frameBlending “AVLayer frameBlending attribute” When true, frame blending is enabled.
frameBlendingType “AVLayer frameBlendingType attribute” The type of frame blending for the layer.
canSetTimeRemapEnabled “AVLayer canSetTimeRemapEnabled attribute” When true, it is legal to change the value of timeRemapEnabled.
timeRemapEnabled “AVLayer timeRemapEnabled attribute” When true, time remapping is enabled on this layer.
hasAudio “AVLayer hasAudio attribute” When true, the layer contains an audio component.
Attribute Reference Description
audioActive “AVLayer audioActive attribute” When true, the layer’s audio is active at the current time.
blendingMode “AVLayer blendingMode attribute” The blending mode of the layer.
preserveTransparency “AVLayer preserveTransparency attribute” When true, preserve transparency is enabled.
trackMatteType “AVLayer trackMatteType attribute” if layer has a track matte, specifies the way it is applied.
isTrackMatte “AVLayer isTrackMatte attribute” When true, this layer is being used as a track matte for the layer below it.
hasTrackMatte “AVLayer hasTrackMatte attribute” When true, the layer above is being used as a track matte on this layer.
quality “AVLayer quality attribute” The layer quality setting.
autoOrient “AVLayer autoOrient attribute” The type of automatic orientation for the layer.

Methods

Method Reference Description
audioActiveAtTime “AVLayer audioActiveAtTime method” Reports whether this layer’s audio is
active at a given time.
calculateTransformFromPoints “AVLayer calculateTransform-FromPoints method” Calculates a transformation from a set of
points in this layer.
replaceSource “AVLayer replaceSource method” Changes the source item for this layer.
sourceRectAtTime “AVLayer sourceRectAtTime method” Retrieves the source rectangle of a layer.
openInViewer “AVLayer openInViewer method” Opens the layer in a Layer panel.

Other Tags

Posted in AVLayer object and tagged , , , , , , , , , , , , , , , , , , , .