CameraLayer
Properties
true when the layer's video is active at the current time (enabled, not overridden by another soloed layer, and within inPoint/outPoint). Never true for an audio layer. For an effect or property, same as enabled but read-only.true if the layer is an adjustment layer.AutoOrientType.true if the enabled attribute value can be set. Generally true if the UI shows an eyeball icon for this property; always true for layers.true if this property is an organizational group not shown in the UI, whose children are not indented in the Timeline panel.true if this is an environment layer in a ray-traced 3D composition; setting it to true also makes the layer 3D.true if the layer has a video switch (the eyeball icon) in the Timeline panel.true if this property is an effect PropertyGroup.true if this property is a mask PropertyGroup.true if this property has changed since it was created.true if name has been explicitly set rather than derived from the source; always true for layers without a source.0 for none, 1-16 for a preset color).lightType is LightType.ENVIRONMENT.true if the layer is locked.name, it doesn't change across versions.isNameSet is false). For an effect or property, its display name; settable only for children of an indexed group.true if the layer was created as a null object.property().null. Setting this offsets transform values so the child's on-screen transform doesn't jump; use setParentWithJump to reparent without that offset.null if this is a layer.0 for a layer.PropertyType.PROPERTY, PropertyType.INDEXED_GROUP, or PropertyType.NAMED_GROUP.true if this property is selected in the UI.Property and PropertyGroup objects in the layer.true if the layer is "shy" (hidden in the Layer panel when the comp's "Hide all shy layers" option is on).true if the layer is soloed.100 means no stretch.Instance Methods
activeAtTime
Returns: boolean
Since: 27.0
Returns true if the layer will be active at the given time (enabled, not overridden by soloing, and within inPoint/outPoint).
Parameters
addGuide
Returns: any
Since: 27.0
Adds a guide to the layer's view and returns its index. Accepts either (orientationType, position) for a pixel guide, or a single GuideOptions object (AE 26.5+) for percentage positioning, color, and pinning.
Parameters
0 for horizontal, 1 for vertical; you can also pass GuideOrientationType.HORIZONTAL / .VERTICAL.addProperty
Returns: PropertyGroup
Since: 27.0
Creates and returns a PropertyBase object with the specified name, and adds it to this group. In general, you can only add properties to an indexed group (a property group that has the type PropertyType.INDEXED_GROUP). The only exception is a text animator property, which can be added to a named group (type PropertyType.NAMED_GROUP). If this method cannot create a property with the specified name, it generates an exception. To check that you can add a particular property to this group, call canAddProperty before calling this method. Warning: when you add a new property to an indexed group, the indexed group gets recreated from scratch, invalidating all existing references to properties. One workaround is to store the index of the added property with propertyIndex.
Parameters
addToMotionGraphicsTemplate
Returns: boolean
Since: 27.0
Adds this property to the Essential Graphics panel for the specified composition. true on success. Use canAddToMotionGraphicsTemplate to check eligibility first.
Parameters
addToMotionGraphicsTemplateAs
Returns: boolean
Since: 27.0
Same as addToMotionGraphicsTemplate, but lets you give the EGP property a custom name.
Parameters
addVariableFontAxis
Returns: Property
Since: 27.0
Creates and returns a Property object for a variable font axis, and adds it to this property group. This method can only be called on the "ADBE Text Animator Properties" property group within a text animator. Common axis tags include (but are not limited to): "wght" - Weight (100-900 typical range), "wdth" - Width (percentage of normal width), "slnt" - Slant (angle in degrees), "ital" - Italic (0-1 range), "opsz" - Optical Size (point size). Fonts may also include custom axes with 4-character uppercase tags (e.g., "INFM" for Informality).
Parameters
applyPreset
Returns: boolean
Since: 27.0
Applies an animation preset file to the comp's currently selected layers (or a new solid layer if none is selected).
Parameters
canAddProperty
Returns: boolean
Since: 27.0
Returns true if a property with the given name can be added to this property group. For example, you can only add mask to a mask group. The only legal input arguments are "mask" or "ADBE Mask Atom".
Parameters
canAddToMotionGraphicsTemplate
Returns: boolean
Since: 27.0
Tests whether the layer can be added to the Essential Graphics panel for the given composition (Media Replacement Layers only).
Parameters
copyToComp
Returns: boolean
Since: 27.0
Copies the layer into the target composition, prepending it to the composition's LayerCollection.
Parameters
doSceneEditDetection
Returns: number[]
Since: 27.0
Runs Scene Edit Detection on the layer and returns the detected scene-change times; throws for non-video layers or layers with Time Remapping enabled.
Parameters
SceneEditDetectionMode.MARKERS, .SPLIT, .SPLIT_PRECOMP, .NONE.duplicate
Returns: CameraLayer
Since: 27.0
Duplicates the layer, creating a new one with the same values.
getGuideAsObject
Returns: GuideOptions
Since: 27.0
Returns the guide at the given index as a GuideOptions object, modifiable and passable back to setGuide.
Parameters
getRenderGUID
Returns: DeferredCall
Since: 27.0
Starts an asynchronous render of the layer and returns a DeferredCall; .wait() on the result yields the render GUID.
Parameters
ProjectThread value.moveAfter
Returns: boolean
Since: 27.0
Moves this layer to a position immediately after (below) the given layer.
Parameters
moveBefore
Returns: boolean
Since: 27.0
Moves this layer to a position immediately before (above) the given layer.
Parameters
moveTo
Returns: boolean
Since: 27.0
Moves this property to a new index in its parent group. Only valid for children of indexed groups; invalidates existing sibling references.
Parameters
moveToBeginning
Returns: boolean
Since: 27.0
Moves this layer to the top of the layer stack.
moveToEnd
Returns: boolean
Since: 27.0
Moves this layer to the bottom of the layer stack.
property
Returns: any
Since: 27.0
Finds and returns a child property of this group, as specified by either its index or name. A name specification can use the same syntax that is available with expressions. mylayer.position, mylayer("position"), mylayer.property("position"), mylayer(1), and mylayer.property(1) are all equivalent. Some properties of a layer, such as position and zoom, can be accessed only by name. When using the name to find a property that is multiple levels down, you must make more than one call to this method - for example, myLayer.property("ADBE Masks").property(1) searches two levels down.
Parameters
propertyGroup
Returns: PropertyGroup
Since: 27.0
Gets the ancestor PropertyGroup at a specified level up the parent-child hierarchy (default: immediate parent). Returns the Layer if the count reaches the containing layer.
Parameters
1).remove
Returns: boolean
Since: 27.0
Deletes the layer from the composition.
removeGuide
Returns: boolean
Since: 27.0
Removes the guide at the given index.
Parameters
savePreset
Returns: boolean
Since: 27.0
Saves the layer's currently selected properties as an animation preset (.ffx) file. Returns false if nothing was selected to save.
Parameters
setGuide
Returns: any
Since: 27.0
Updates an existing guide: (position, guideIndex) moves it to a new pixel position, or (guideIndex, guideOptions) applies a partial update (AE 26.5+).
Parameters
setParentWithJump
Returns: boolean
Since: 27.0
Sets the layer's parent without changing its transform values (may cause an apparent jump). Required in this binding - throws if newParent is omitted, unlike ExtendScript's optional signature.