Skip to content

Property

Property

Property(
    enabled: bool,
    match_name: str,
    name: str,
    animated: bool,
    color: bool,
    dimensions_separated: bool,
    dimensions: int,
    expression_enabled: bool,
    expression: str,
    integer: bool,
    is_spatial: bool,
    keyframes: list[Keyframe],
    locked_ratio: bool,
    no_value: bool,
    property_control_type: PropertyControlType,
    property_value_type: PropertyValueType,
    value: Any,
    vector: bool,
    elided: bool = False,
    default_value: Any = None,
    last_value: Any = None,
    max_value: Any = None,
    min_value: Any = None,
    nb_options: int | None = None,
    property_parameters: list[str] | None = None,
)

Bases: PropertyBase

The Property object contains value, keyframe, and expression information about a particular AE property of a layer. An AE property is a value, often animatable, of an effect, mask, or transform within an individual layer.

Info

Property is a subclass of PropertyBase. All methods and attributes of PropertyBase are available when working with Property.

See: https://ae-scripting.docsforadobe.dev/property/property/

Attributes

animated

animated: bool

When True, the property has keyframes.

color

color: bool

When True, the property value is a color.

default_value

default_value: Any = None

The default value of the property.

dimensions

dimensions: int

The number of dimensions in the property value (1, 2, or 3).

dimensions_separated

dimensions_separated: bool

When True, the property's dimensions are represented as separate properties. For example, if the layer's position is represented as X Position and Y Position properties in the Timeline panel, the Position property has this attribute set to True. This attribute applies only when the property is a "separation leader" (a multidimensional property that can be separated).

elided

elided: bool = False

When True, the property is elided (hidden in the UI).

enabled

enabled: bool

Corresponds to the setting of the eyeball icon.

expression

expression: str

The expression for the named property. Writeable only when can_set_expression for the named property is True.

expression_enabled

expression_enabled: bool

When True, the named property uses its associated expression to generate a value. When False, the keyframe information or static value of the property is used.

has_max

has_max: bool

True if there is a maximum permitted value for the named property.

has_min

has_min: bool

True if there is a minimum permitted value for the named property.

integer

integer: bool

When True, the property value is an integer.

is_dropdown_effect

is_dropdown_effect: bool

True if the property is the Menu property of a Dropdown Menu Control effect.

is_spatial

is_spatial: bool

When True, the named property defines a spatial value. Examples are position and effect point controls.

is_time_varying

is_time_varying: bool

True if the named property has keyframes or an enabled expression.

keyframes

keyframes: list[Keyframe]

The list of keyframes for this property.

last_value

last_value: Any = None

The last value of the property (before animation).

locked_ratio

locked_ratio: bool

When True, the property's X/Y ratio is locked.

match_name

match_name: str

A special name for the property used to build unique naming paths. The match name is not displayed, but you can refer to it in scripts. Every property has a unique match-name identifier.

max_value

max_value: Any = None

The maximum permitted value of the named property. Only valid if has_max is True.

min_value

min_value: Any = None

The minimum permitted value of the named property. Only valid if has_min is True.

name

name: str

Display name of the property.

nb_options

nb_options: int | None = None

The number of options in a dropdown property.

no_value

no_value: bool

When True, the property stores no data.

property_control_type

property_control_type: PropertyControlType

The type of effect control (scalar, color, enum, etc.) for this property.

property_parameters

property_parameters: list[str] | None = None

An array of all item strings in a dropdown menu property. This attribute applies to dropdown menu properties of effects and layers, including custom strings in the Menu property of the Dropdown Menu Control.

property_value_type

property_value_type: PropertyValueType

The type of value stored in the named property. Each type of data is stored and retrieved in a different kind of structure. For example, a 3D spatial property (such as a layer's position) is stored as an array of three floating-point values.

value

value: Any

The value of the named property at the current time. If expression_enabled is True, returns the evaluated expression value. If there are keyframes, returns the keyframed value at the current time. Otherwise, returns the static value.

vector

vector: bool

When True, the property value is a vector.

Functions

active

active() -> bool

Same as enabled.

get_separation_follower

get_separation_follower(dim: int) -> Property | None

Retrieve a specific follower property for a separated, multidimensional property.

For example, you can use this method on the Position property to access the separated X Position and Y Position properties.

Parameters:

  • dim
    (int) –

    The dimension number (starting at 0).

is_modified

is_modified() -> bool

True if this property has been changed since its creation.

nearest_key

nearest_key(time: float) -> Keyframe

Returns the keyframe nearest to the specified time.

Parameters:

  • time
    (float) –

    The time in seconds; a floating-point value. The beginning of the composition is 0.

nearest_key_index

nearest_key_index(time: float) -> int

Returns the index of the keyframe nearest to the specified time.

Parameters:

  • time
    (float) –

    The time in seconds; a floating-point value. The beginning of the composition is 0.