Skip to content

Solid Source

SolidSource

SolidSource(
    alpha_mode: AlphaMode,
    conform_frame_rate: int,
    field_separation_type: FieldSeparationType,
    has_alpha: bool,
    high_quality_field_separation: bool,
    invert_alpha: bool,
    is_still: bool,
    loop: int,
    premul_color: list[float],
    color: list[float],
)

Bases: FootageSource

The SolidSource object represents a solid-color footage source.

Info

SolidSource is a subclass of FootageSource object. All methods and attributes of FootageSource are available when working with SolidSource.

See: https://ae-scripting.docsforadobe.dev/sources/solidsource/

Attributes

alpha_mode

alpha_mode: AlphaMode

Defines how the alpha information in the footage is interpreted. If has_alpha is False, this attribute has no relevant meaning.

color

color: list[float]

The solid color (RGBA).

conform_frame_rate

conform_frame_rate: int

A frame rate to use instead of the native_frame_rate value. If set to 0, the native_frame_rate is used instead.

field_separation_type

field_separation_type: FieldSeparationType

How the fields are to be separated in non-still footage. It is an error to set this attribute if is_still is True. It is an error to set this value to FieldSeparationType.OFF if remove_pulldown is not PulldownPhase.OFF.

has_alpha

has_alpha: bool

When True, the footage has an alpha component. In this case, the attributes alpha_mode, invert_alpha, and premultiplied have valid values. When False, those attributes have no relevant meaning for the footage.

high_quality_field_separation

high_quality_field_separation: bool

When True, After Effects uses special algorithms to determine how to perform high-quality field separation.

invert_alpha

invert_alpha: bool

When True, an alpha channel in a footage clip or proxy should be inverted. This attribute is valid only if an alpha is present. If has_alpha is False, or if alpha_mode is AlphaMode.IGNORE, this attribute is ignored.

is_solid

is_solid: bool

Whether this is a solid source.

is_still

is_still: bool

When True the footage is still; When False, it has a time-based component. Examples of still footage are JPEG files, solids, and placeholders with a duration of 0. Examples of non-still footage are movie files, sound files, sequences, and placeholders of non-zero duration.

loop

loop: int

The number of times that the footage is to be played consecutively when used in a composition.

premul_color

premul_color: list[float]

The color to be premultiplied. This attribute is valid only if the alpha_mode is AlphaMode.PREMULTIPLIED.