High level bindings for the Adobe AfterEffectsยฎ (Ae) and Adobe Premiere Proยฎ SDKs.
This wraps many of the API suites in the Ae and Pr SDK and exposes them in safe Rust.
It also defines a set of macros that implement all the plugin boilerplate for you, so you can focus just on your actual plugin implementation.
Building the plugins is done entirely with Rust โ there's no need to use any external programs or dependencies.
Packaging of the final plugin is done using a just
script.
Install with cargo install just
and download
AdobePlugin.just
and put it next to your Cargo.toml
.
Adobe plugins contain a special resource describing the plugin called PiPL
. This repository
includes a PiPL
tool written in Rust which generates the needed resource in build.rs
.
Pre-generated SDK bindings are included, so you can compile the final plugin by just running
just release
, and it works on both macOS and Windows.
You can also re-generate the bindings by downloading the SDK headers from Adobe and setting
AESDK_ROOT
and/or PRSDK_ROOT
environment variables.
Add after-effects
or premiere
to your dependencies and pipl
to your dev-dependencies.
cargo add after-effects
cargo add --dev pipl
Adobe plugins are shared between After Effects and Premiere.
The main engine is based on After Effects, but Premiere loads most of the Ae plugins. While they have many common parts, there are some areas that are separated.
-
Premiere is missing all
AEGP
suites. -
Premiere uses only software rendering, even if the Ae plugin supports GPU render and Smart Render.
-
Premiere has a separate entry point for GPU rendering, which can be defined using the
premiere::define_gpu_filter!
macro. -
After Effects and Premiere also have some separate areas that are implemented independently.
-
You can't write a video filter plugin using only the Premiere SDK, the base engine is using Ae SDK.
A few basic examples are included in the repository. For more advanced use cases, refer to the C/C++ examples from the SDK.
For a more advanced sample with full GPU rendering you can check out the Gyroflow plugin
When developing your plugin it's best to use the debug build - it will catch and display panics
for you and it will log any messages and stack traces to DbgView
(on Windows) or Console
(on
macOS). This is done by running just build
.
The release version can be built using just release
Some plugins may be slow in debug build, in this case you can add optimizations to the debug build by using
[profile.dev]
opt-level = 3
or add debug symbols to your release build by using
[profile.release]
debug = true
debug-assertions = true
in your Cargo.toml
file.
The release build doesn't catch panics by default to not add any additional overhead. You can
opt-in for the panic handler by enabling catch-panics
cargo
feature:
features = ["catch-panics"]
-
If you need a suite that's not yet wrapped, feel free to create a PR wrapping that suite.
-
Examples and documentation.
Download the Adobe After Effects SDK.
โ ๏ธ The SDK published by Adobe is outdated if you are using the 3D Artisan API to write your own 3D renderer plug-in. Also see Features below for more information.Ignore this if you just want to develop 2D plugins (which still have access to 3D data).
Define the AESDK_ROOT
environment variable that contains the path to your
Ae SDK. Typically the directory structure will look like this:
AfterEffectsSDK
โโโ After_Effects_SDK_Guide.pdf
โโโ Examples
โโโ AEGP
โโโ Effect
โโโ ...
AEGP | PF | DRAWBOT | Other |
---|---|---|---|
๐ณ Artisan Util | โ AE Adv App | โ Draw | โ AE Plugin Helper |
โ Camera | โ AE Adv Item | โ Image | โ AE Plugin Helper 2 |
โ Canvas | ๐ณ AE Adv Time | โ Path | |
๐ณ Collection | โ AE App | โ Pen | |
๐ณ Command | โ AngleParam | โ Supplier | |
โ Comp | ๐ณ ANSI | โ Surface | |
โ Composite | โ Background Frame | ||
๐ณ Compute | ๐ณ Batch Sampling | ||
โ Dynamic Stream | โ Cache On Load | ||
โ Effect | โ Channel | ||
๐ณ File Import Manager | โ Color Settings | ||
โ Footage | โ Color Callbacks | ||
๐ณ Hash | โ Color Callbacks 16 | ||
โ IO In | โ Color Callbacks Float | ||
๐ณ IO Out | โ ColorParam | ||
โ Item | โ Effect Custom UI | ||
๐ณ Item View | โ Effect Custom UI Overlay Theme | ||
๐ณ Iterate | โ Effect Sequence Data | ||
โ Keyframe | โ Effect UI | ||
๐ณ Layer Mask | โ Fill Matte | ||
โ Layer Render Options | โ GPU Device | ||
โ Layer | โ Handle | ||
โ Light | โ Iterate8 | ||
๐ณ Marker | โ iterate16 | ||
โ Mask Outline | โ iterateFloat | ||
โ Mask | โ Param Utils | ||
๐ณ Math | ๐ณ Path Data | ||
โ Memory | ๐ณ Path Query | ||
๐ณ Output Module | โ Pixel Data | ||
๐ณ Persistent Data | โ Pixel Format | ||
โ PF Interface | โ PointParam | ||
โ Proj | ๐ณ Sampling8 | ||
๐ณ QueryXform | ๐ณ Sampling16 | ||
๐ณ Register | ๐ณ SamplingFloat | ||
โ Render Asyc Manager | โ Source Settings | ||
โ Render Options | โ Transition | ||
๐ณ Render Queue Item | โ Utility | ||
๐ณ Render Queue | โ World | ||
โ Render | โ World Transform | ||
๐ณ RenderQueue Monitor | |||
โ Sound Data | |||
โ Stream | |||
๐ณ Text Document | |||
๐ณ Text Layer | |||
๐ณ Tracker | |||
๐ณ Tracker Utility | |||
โ Utility | |||
๐ณ Workspace Panel | |||
โ World |
Premiere | MediaCore | Control Surface | Other |
---|---|---|---|
๐ณ Audio | ๐ณ Accelerated Render Invocation | ๐ณ ControlSurface | โ PF Background Frame |
๐ณ Clip Render | ๐ณ App Info | ๐ณ ControlSurface Command | โ PF Cache On Load |
๐ณ Deferred Processing | ๐ณ Application Settings | ๐ณ ControlSurface Lumetri | โ PF Pixel Format |
๐ณ Error | ๐ณ Async File Reader | ๐ณ ControlSurface Marker | โ PF Source Settings |
๐ณ Export Audio Param | ๐ณ Async Operation | ๐ณ ControlSurface Mixer | โ PF Transition |
๐ณ Export Standard Param | ๐ณ Export File | ๐ณ ControlSurface Transport | โ PF Utility |
๐ณ ExportController | ๐ณ Export Info | ๐ณ ControlSurfaceHost | โ Opaque Effect Data |
๐ณ File Registration | ๐ณ Export Param | ๐ณ ControlSurfaceHost Command | ๐ณ Captioning |
๐ณ Image Processing | ๐ณ Export Progress | ๐ณ ControlSurfaceHost Lumetri | ๐ณ Effect Stream Label |
๐ณ Legacy | ๐ณ Exporter Utility | ๐ณ ControlSurfaceHost Marker | ๐ณ FlashCueMarkerData |
๐ณ Media Accelerator | โ GPU Device | ๐ณ ControlSurfaceHost Mixer | ๐ณ Importer File Manager |
โ Memory Manager | โ GPU Image Processing | ๐ณ ControlSurfaceHost Transport | ๐ณ Marker |
๐ณ Palette | ๐ณ Playmod Immersive Video | ๐ณ ControlSurfacePlugin | |
๐ณ Pixel Format | ๐ณ Playmod Overlay | ๐ณ String | |
๐ณ Playmod Audio | ๐ณ Sequence Audio | ||
๐ณ Playmod Device Control | โ Sequence Info | ||
โ PPix | ๐ณ Sequence Render | ||
โ PPix 2 | ๐ณ Smart Rendering | ||
๐ณ PPix Cache | ๐ณ String | ||
๐ณ PPix Creator | ๐ณ Transmit Invocation | ||
๐ณ PPix Creator 2 | โ Video Segment | ||
๐ณ RollCrawl | ๐ณ Video Segment Render | ||
๐ณ Threaded Work | |||
โ Time | |||
๐ณ Window |
Apache-2.0 OR BSD-3-Clause OR MIT OR Zlib at your option.