An After Effects file parser in Python!
Explore the docs »
This as a .aep (After Effects Project) parser in Python. After Effects files (.aep) are mostly binary files, encoded in RIFX format. This parser uses Kaitai Struct to parse .aep files and return a Project object containing items, layers, effects and properties. The API is as close as possible to the ExtendScript API, with a few nice additions like iterators instead of collection items.
pip install aep-parserfrom aep_parser import parse_project
# Parse an After Effects project
project = parse_project("path/to/project.aep")
# Access every item
for item in project:
print(f"{item.name} ({type(item).__name__})")
# Get a composition by name and its layers
comp = project.composition("Comp 1")
for layer in comp.layers:
print(f" Layer: {layer.name}, in={layer.in_point}s, out={layer.out_point}s")
# Access layer's source (for AVLayer)
if hasattr(layer, "source") and layer.source:
print(f" Source: {layer.source.name}")
# Get file path if source is footage with a file
if hasattr(layer.source, "file"):
print(f" File: {layer.source.file}")
# Access render queue
for rq_item in project.render_queue.items:
print(f"Render: {rq_item.comp_name}")
for om in rq_item.output_modules:
# Settings are a dict with ExtendScript keys
video_on = om.settings.get("Video Output", False)
print(f" Output: {om.name}, video={video_on}")See the open issues for a full list of proposed features and known issues.
See the full Contributing Guide on GitHub.
Distributed under the MIT License.
Aurore Delaunay - del-github@blurme.net