Skip to content

forticheprod/aep_parser

Repository files navigation


aep_parser

An After Effects file parser in Python!
Explore the docs »

About The Project

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.

(back to top)

Installation

pip install aep-parser

(back to top)

Usage

from 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}")

(back to top)

Roadmap

See the open issues for a full list of proposed features and known issues.

(back to top)

Contributing

See the full Contributing Guide on GitHub.

(back to top)

License

Distributed under the MIT License.

(back to top)

Contact

Aurore Delaunay - del-github@blurme.net

(back to top)

Acknowledgments

(back to top)

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •