Plugin runtime
What the AfterPresets plugin runtime (ap_native) does inside an After Effects effect - licensing, sign-in, the Options dialog, signed updates applied at the next launch - and the rules it follows.
Every plugin project includes the AfterPresets plugin runtime in
vendor/ap_native/. It is the C++ counterpart of the extension runtime: it
handles licensing and updates inside your effect, against the same
AfterPresets service. AfterPresets maintains it: never edit it. ap init
copies it into the project and ap upgrade refreshes it; buyers get a new
runtime with your next release.
The starter effect (src/License.cpp) already connects it. Your agent reads
the details in the project before it changes anything there.
What it does
Section titled “What it does”- Licensing. Buyers sign in from the effect’s status button or the Options dialog: the runtime opens the AfterPresets sign-in page in the browser and waits for approval. It keeps a signed licence proof on the computer, checks it again online in the background, and supports an offline grace period of 0 to 30 days.
- Licence statuses your effect can show: licensing off, signed out, signing in, checking, active, not owned, refunded, offline (within the grace period), and offline expired.
- The Options dialog. One ready-made dialog with the licence status, the signed-in account, the update notice and changelog, and the buttons for the current state (Sign in, Buy, Sign out, Try again, Manage devices).
- Signed updates. Depending on the update mode, it checks for a new version, downloads it, checks AfterPresets’ signature and prepares it. The new version is put in place when After Effects quits or starts, and loads at the next launch. A running effect is never replaced while After Effects is open.
- A log file per plugin, for support. On macOS
~/Library/Logs/AfterPresets/<bundleId>.log, on Windows%LOCALAPPDATA%\AfterPresets\Logs\<bundleId>.log(1 MB, one older file kept). Sign-in tokens are never written to it.
Rules it follows
Section titled “Rules it follows”- Rendering is never slowed down. The licence check that rendering uses is instant and safe on every render thread (After Effects renders several frames at once). Network work always happens on one background thread, never during a render.
- A frame rendered locked is never reused unlocked, and the other way round: the licence state is part of what After Effects caches.
- No secrets inside. The runtime can only check AfterPresets’ signature, never create one.
- Two plugins never clash, even with different runtime versions.
Where buyers’ copies live
Section titled “Where buyers’ copies live”Release builds install into Adobe’s shared plugin folder, inside
MediaCore/AfterPresets/<bundleId>/ (test builds from ap dev use
MediaCore/AfterPresets Dev/). The first install asks for administrator
permission once; later updates need no password. See
Help for your buyers.