AV Item
AVItem
¶
AVItem(
comment: str,
id: int,
label: Label,
name: str,
parent_folder: FolderItem | None,
type_name: str,
duration: float,
frame_duration: int,
frame_rate: float,
height: int,
pixel_aspect: float,
width: int,
)
Bases: Item
The AVItem object provides access to attributes and methods of
audio/visual files imported into After Effects.
Info
AVItem is a subclass of Item. All methods and attributes of Item
are available when working with AVItem.
Info
AVItem is the base class for both CompItem and FootageItem, so
AVItem attributes and methods are also available when working with
CompItem and FootageItem objects. See CompItem object and
FootageItem object.
See: https://ae-scripting.docsforadobe.dev/item/avitem/
Attributes¶
duration
¶
duration: float
The duration of the item in seconds. Still footages have a duration of 0.
footage_missing
¶
When True, the AVItem is a placeholder, or represents footage with a
source file that could not be found when the project was last saved.
In this case, the path of the missing source file is in the
missing_footage_path attribute of the footage item's source-file object.
See FootageItem.main_source and
FileSource.missing_footage_path.
frame_duration
¶
frame_duration: int
The duration of the item in frames. Still footages have a duration of 0.
has_video
¶
has_video: bool
True if the item has a video component.
An AVItem has video when it has non-zero dimensions (width > 0
and height > 0). In a CompItem, the value is always True.
In a FootageItem,
the value depends on the footage source (e.g. audio-only files
return False).
label
¶
label: Label
The label color. Colors are represented by their number (0 for None, or 1 to 16 for one of the preset colors in the Labels preferences).
parent_folder
¶
parent_folder: FolderItem | None = field(repr=False)
The parent folder of this item. None for the root folder.