# AfterPresets Developers: full documentation --- --- Generated from https://docs.afterpresets.com. Guide and reference pages first, then the extension runtime API reference. --- --- # Build & sell amazing extensions and plugins, fast Source: https://docs.afterpresets.com/ ## Which one do I need? If you would describe it as "a button that does X for me", make an [extension](https://docs.afterpresets.com/extensions/quickstart/). If you would describe it as "a look I apply to a layer", make a [plugin](https://docs.afterpresets.com/plugins/quickstart/). Both build on macOS or Windows, and you can make as many of both as you like. A product stays what it is: an extension cannot later become a plugin. AfterPresets does not review extensions or plugins, and buyers are told this. You are responsible for what your product does. ## For AI agents Every page is also plain Markdown: add `.md` to its address. The whole site is in [/llms.txt](https://docs.afterpresets.com/llms.txt) (an index) and [/llms-full.txt](https://docs.afterpresets.com/llms-full.txt) (every page in one file). --- # Extension quickstart Source: https://docs.afterpresets.com/extensions/quickstart/ An **extension** is a panel inside After Effects or Premiere Pro, with buttons and fields that do work for you. (Want a new effect in the Effect menu instead? That is a [plugin](https://docs.afterpresets.com/plugins/quickstart/).) Your AI agent does the technical work: it runs the commands, writes the code and checks the result in the app. You click a few buttons and describe what you want. Already selling an extension on another store? See [Move an existing extension](https://docs.afterpresets.com/extensions/migrating/). ## Create your extension ### Let your agent do it For the Claude app, Claude Code, Codex, Cursor or any other AI agent. 1. **Create a free AfterPresets account** Sign up at [afterpresets.com](https://afterpresets.com/?loginDialog=true). Already have one? Skip this step. 2. **Create a folder and open your agent in it** Pick how you use your agent: ### Claude app Make a new, empty folder, for example `EasyLayers` in your Documents. In the Claude app's **Code** tab, start a new session and choose the folder. No AI agent yet? Install the [Claude app](https://claude.ai/download) and sign in. ### Terminal agent For Claude Code, Codex or any other agent you run in a terminal. On Windows, use PowerShell. ```sh # Create a new folder mkdir ~/Documents/EasyLayers # Go into it cd ~/Documents/EasyLayers # Start your agent claude # or: codex, or your agent's command ``` ### Code editor For Cursor, VS Code or another editor with an AI agent. Make a new, empty folder, for example `EasyLayers` in your Documents. Open it with **File → Open Folder…**, then open your agent's chat. 3. **Paste this into your agent** Pick the version for your app: ### React + Tailwind · 2022+ (Recommended) ```text title="Paste into your agent" Set up a new Adobe extension for me with AfterPresets, in this folder. First ask me only two things: its name, and which app it is for (After Effects, Premiere Pro or both). Do not ask what it should do yet. Then do every step yourself, and guide me one step at a time through anything only I can do: 1. If this folder is not empty, stop and ask me to make a new empty folder and open you there. 2. Check that node --version is 20 or newer. If Node.js is missing, tell me how to install the LTS version from nodejs.org, and wait. 3. Run npx -y afterpresets login (I will approve it in my browser). 4. Run npx -y afterpresets init . --name "" --app aeft (After Effects), ppro (Premiere Pro) or aeft,ppro (both). 5. Read AGENTS.md, then follow docs/initial_setup.md step by step until my extension is docked and you can see it. Then ask me what to build. If a command fails because your sandbox blocks the internet or saving to ~/.afterpresets, ask me to allow it to run outside the sandbox. ``` ### HTML + CSS · 2020+ ```text title="Paste into your agent" Set up a new Adobe extension for me with AfterPresets, in this folder. First ask me only two things: its name, and which app it is for (After Effects, Premiere Pro or both). Do not ask what it should do yet. Then do every step yourself, and guide me one step at a time through anything only I can do: 1. If this folder is not empty, stop and ask me to make a new empty folder and open you there. 2. Check that node --version is 20 or newer. If Node.js is missing, tell me how to install the LTS version from nodejs.org, and wait. 3. Run npx -y afterpresets login (I will approve it in my browser). 4. Run npx -y afterpresets init . --name "" --app aeft (After Effects), ppro (Premiere Pro) or aeft,ppro (both). Add --starter blank to that command. 5. Read AGENTS.md, then follow docs/initial_setup.md step by step until my extension is docked and you can see it. Then ask me what to build. If a command fails because your sandbox blocks the internet or saving to ~/.afterpresets, ask me to allow it to run outside the sandbox. ``` 4. **Follow your agent's instructions** Do what your agent asks. It sets everything up and tells you when it needs you. When your panel is open, it asks what you want to build. ### Terminal For people who like to type the commands, next to Claude Code, Codex, Cursor or any other agent. 1. **Install Node.js 20 or newer** ### macOS Download the LTS installer from [nodejs.org](https://nodejs.org), or with [Homebrew](https://brew.sh): ```sh brew install node ``` ### Windows Download the LTS installer from [nodejs.org](https://nodejs.org), or in PowerShell: ```powershell winget install OpenJS.NodeJS.LTS ``` Close and reopen PowerShell afterwards so it finds `node`. Check it: ```sh node --version ``` 2. **Install the CLI and log in** ```sh npm i -g afterpresets ap login ``` Your browser opens. Sign in and click **Authorize CLI**. 3. **Create your extension** ```sh ap init my-extension ``` It asks which app it is for (After Effects, Premiere Pro or Both), which starter to use (React with Tailwind CSS, the default, for the 2022 apps and newer; or a blank HTML, CSS and JavaScript panel for every version), then a name and a short ID. To skip the questions, pass them as flags: ```sh ap init my-extension --app aeft,ppro --name "My Extension" ``` 4. **Open the folder in your agent** The folder contains `AGENTS.md`, which tells the agent how everything works. The agent builds, tests and publishes with the same `ap` commands you use (`npx ap ...`), so there is nothing to install or approve. 5. **Start development mode** ```sh cd my-extension ap dev ``` Leave it running: it builds the extension, puts it into the app, and rebuilds on every save. Your agent can also start it with its tools. 6. **Open the panel in your app** Restart After Effects or Premiere Pro, choose **Window → Extensions → My Extension**, and sign in on the license screen.
Stuck? - **The panel is not in Window → Extensions.** Apps look for extensions only when they start: quit the app completely and open it again. - **Sign-in never finishes.** A network blocker such as Radio Silence, Little Snitch or LuLu stops you from signing in. Turn it off (or allow After Effects and Premiere Pro) just while you sign in. - **The agent cannot see or click the panel.** You are probably still in the first chat. Start a new chat in the same folder and approve the **AfterPresets** tools. More fixes in [Troubleshooting](https://docs.afterpresets.com/extensions/troubleshooting/).
## Describe what to build Once your panel is docked and the agent can see it, it asks what the extension should do. Give it detail, in your own words: - **What you do today by hand**, and what the panel should do instead. - **Reference images:** screenshots of tools you like, a sketch, or your own project. Drag them into the chat. It asks questions about anything unclear and tells you its plan before it builds. Then keep talking to it until the extension does what you want. When you are happy, say "push a test release" to send it to your testers. **Next:** [Building with your agent](https://docs.afterpresets.com/extensions/building-with-your-agent/) --- # Building with your agent Source: https://docs.afterpresets.com/extensions/building-with-your-agent/ You describe what you want, your agent builds it, and you check the result in After Effects or Premiere Pro. ## Why your agent is good at this Normally an AI agent writes code blind: it cannot see your panel or know if a button works. With AfterPresets, it can test its own work in the real app: - **See the panel.** It reads what is on screen and takes screenshots. - **Use the panel.** It clicks buttons and types into fields, like you would. - **Talk to the app.** It runs scripts in After Effects or Premiere Pro and reads the result. - **Reload on every change.** Each save rebuilds the panel right away. - **Read the error log.** When something breaks, it finds out why. - **Publish safely.** It checks the project, sends test releases, and asks for your OK before anything reaches your buyers. Every project also comes with a guide for the agent, so it knows how AfterPresets works from the first message. It tests changes in an empty scratch project, never in your own work. ## Prompts that work well Say what you do and what should happen. No technical words needed. ```text Add a "Center anchor point" button. When I click it, every selected layer gets its anchor point moved to the center of its content, without the layer moving on screen. ``` ```text Clicking Rename does nothing. Find out why and fix it. ``` ```text The panel feels cramped when it's narrow. Make it work at 300px wide and show me screenshots. ``` ```text Make it look like a native After Effects panel: dark grey, small text, compact buttons. ``` ```text Restyle the license and update screens to match the rest of the extension, and show me a screenshot of each. ``` Tips: ask for one feature at a time, ask for screenshots, and say exactly what you see ("the button is there but nothing happens"). When it looks right, set your price in [Selling](https://docs.afterpresets.com/selling/pricing-and-commission/) and say "push a test release". **Next:** [Multiple panels](https://docs.afterpresets.com/extensions/multiple-panels/) --- # Multiple panels Source: https://docs.afterpresets.com/extensions/multiple-panels/ A **panel** is one window of your extension. Every extension starts with one: the panel you open from **Window → Extensions**. You can add more, for example a settings dialog or a second tool. They are sold together, buyers sign in once, and they update together. Most extensions only need one panel, maybe plus a settings dialog. ## Add a panel Ask your agent and describe what the panel is for: ```text title="Paste into your agent" Add a settings window that opens when I click a gear icon in the main panel. ``` It creates the panel, connects it to the rest of your extension, and tells you when to restart the app (apps only find new panels when they start). Prefer to do it yourself? Run `ap add panel settings --type modal` (a dialog), then restart `ap dev` and the app. All options are in [ap commands](https://docs.afterpresets.com/reference/cli/#ap-add). **Next:** [After Effects + Premiere Pro](https://docs.afterpresets.com/extensions/after-effects-and-premiere/) --- # After Effects + Premiere Pro Source: https://docs.afterpresets.com/extensions/after-effects-and-premiere/ One extension can run in **After Effects**, **Premiere Pro**, or **both**. Buyers buy it once, sign in once, and get the same updates in both apps. To start with both, choose **Both** in the [quickstart](https://docs.afterpresets.com/extensions/quickstart/). You do not need to worry about how the two apps differ inside. Your agent knows both and handles it for you, for example saying "composition" in After Effects and "sequence" in Premiere Pro. ## Add the other app later Started with one app? Add the other at any time. Your buyers get it with your next release. ### Let your agent do it ```text title="Paste into your agent" Make this extension run in Premiere Pro too. ``` Swap the app names if you started in Premiere Pro. ### Terminal In the project folder: ```sh ap add host ppro # or: ap add host aeft ``` Then stop `ap dev`, start it again, and restart the new app. ## Testing Ask your agent to test in **both** apps before you release. It can reach the panel in only one app at a time, so close it in the other app while it tests. **Next:** [Troubleshooting](https://docs.afterpresets.com/extensions/troubleshooting/) --- # Move an existing extension Source: https://docs.afterpresets.com/extensions/migrating/ Already selling an extension somewhere else, with your own license keys and update emails? Move it to AfterPresets and buyers get sign-in licensing and updates that install themselves, while you get one place to sell it. Your AI agent rebuilds the extension on AfterPresets, feature by feature, using your old project as the reference. It never changes your old project. Then you invite your existing buyers to claim it for free. ## What changes - **It becomes a new extension.** It gets a new ID, so it installs next to the old copy instead of replacing it. Buyers remove the old copy themselves after installing the new one. - **License keys go away.** Buyers sign in with a free AfterPresets account in the panel. Old keys don't carry over: your buyers claim the new version instead (steps 6 and 7 below). - **Updates install themselves.** No more update emails or download links. - **Free or one-time price.** There are no trials and no subscriptions. If your old version had a trial, your agent asks what you want instead (for example, a free version with fewer features as a separate product). - **No ZXP.** Buyers get a ZIP with an install script for macOS and Windows. See [Help for your buyers](https://docs.afterpresets.com/selling/buyers/). Your extension's look and features stay the same. Most extensions move over as they are: HTML, CSS and JavaScript or React panels, ExtendScript, Node.js, several panels. Panels written in Vue, Svelte or Angular need their screens rewritten; your agent tells you before it starts. ## Move it 1. **Create a free AfterPresets account** Sign up at [afterpresets.com](https://afterpresets.com/?loginDialog=true). 2. **Create a new, empty folder and open your agent in it** Not your old project's folder. Make a new one next to it, for example `EasyLayers-AfterPresets`, and open your agent there (the [quickstart](https://docs.afterpresets.com/extensions/quickstart/) shows how). 3. **Paste this into your agent** Replace the path in the first line with the folder of your old extension (the folder that contains `CSXS/manifest.xml`). ```text title="Paste into your agent" Move my existing Adobe extension to AfterPresets, into this folder. My old extension is in: /path/to/my-old-extension Only read the old folder: never change, build, install or run anything in it. Do every step yourself, and guide me one step at a time through anything only I can do: 1. If this folder is not empty, stop and ask me to make a new empty folder and open you there. 2. Read the old project's CSXS/manifest.xml and its source. Tell me in a few lines: its name, which apps it supports (After Effects, Premiere Pro or both) and the oldest version of each, and whether its panels are written in React. Wait for my OK. 3. Check that node --version is 20 or newer. If Node.js is missing, tell me how to install the LTS version from nodejs.org, and wait. 4. Run npx -y afterpresets login (I will approve it in my browser). 5. Run npx -y afterpresets init . --name "" --app aeft (After Effects), ppro (Premiere Pro) or aeft,ppro (both). Add --starter blank unless the old panels are written in React and I'm fine with supporting only the 2022 apps and newer. 6. Read AGENTS.md, follow docs/initial_setup.md steps 1 to 5 until the starter panel is docked and you can see it, then follow docs/migrating.md. If a command fails because your sandbox blocks the internet or saving to ~/.afterpresets, ask me to allow it to run outside the sandbox. ``` 4. **Work through it with your agent** It lists every feature of your old extension, tells you its plan and waits for your OK. Then it ports the extension piece by piece, tests each feature in the app and shows you screenshots. It keeps notes in `docs/migration_notes.md`, so you can stop and continue in a new chat. Have your old extension open next to it: telling the agent "this looks different from the old one" with a screenshot helps a lot. 5. **Set your price and publish** On your extension's page in the [developer dashboard](https://afterpresets.com/dashboard/developer), set the price, the number of computers per purchase and the listing (see [Pricing and commission](https://docs.afterpresets.com/selling/pricing-and-commission/)). Ask your agent to push a test release, try it, then publish the first production release. See [Testers and publishing](https://docs.afterpresets.com/selling/publishing/). 6. **Import your existing buyers** On the same dashboard page, under **Existing customers**, paste your buyers' email addresses, or upload your old store's customer export (a CSV file from Payhip, Gumroad, Lemon Squeezy or any other store works). **60 days:** Imports are open until 60 days after your first production release. Import everyone before then. Buyers already on the list can claim at any time. 7. **Send your buyers the claim link** AfterPresets never emails your imported buyers: you tell them, from your old store or your mailing list. Copy the claim link from **Existing customers** into an email like this one: ```text title="Email to your buyers" Subject: has moved, and your copy is free Hi, Thanks for buying . It now lives on AfterPresets, where updates install by themselves and there are no license keys to keep track of. Your copy is free: 1. Open 2. Sign in or create a free AfterPresets account with the email you bought with, and click Claim your copy. 3. Download it, run the installer, and sign in inside the panel. 4. Remove the old copy of . If you bought with a different email, reply with it and I'll add it. ``` 8. **Retire the old store listing** Stop selling on the old store, or point its page to your AfterPresets listing. If your old version can show a message or ship one last update, use it to send buyers to the claim link. ## Good to know - **A claimed copy is free:** no commission. - **Claimed copies work like purchases.** Buyers find them in their purchases, sign in on as many computers as you allow, and get every update. - **Settings don't move by themselves.** Settings the old version saved in files can be imported on the first start; tell your agent if you want that. Settings kept only inside the old panel cannot be read by the new one. - **Moving a C++ effect plugin?** This guide covers extensions (panels). Contact AfterPresets support from [afterpresets.com](https://afterpresets.com) about moving a native plugin. **Next:** [Building with your agent](https://docs.afterpresets.com/extensions/building-with-your-agent/) --- # Troubleshooting Source: https://docs.afterpresets.com/extensions/troubleshooting/ Most problems have a quick fix. When in doubt, paste the error into your agent and ask it to explain and fix it. Building a plugin (an effect)? See [Plugin troubleshooting](https://docs.afterpresets.com/plugins/troubleshooting/). ## The panel is not in Window → Extensions 1. **Is `ap dev` running?** Its output should say the build is ready, the extension is linked, and `PlayerDebugMode` is enabled. If it shows an error, fix that first. 2. **Restart the app.** After Effects and Premiere Pro only look for extensions when they start. Quit the app completely and open it again. Do the same after adding a new panel or a second app (`ap add host`). 3. **"PlayerDebugMode" could not be enabled.** Both apps only load unsigned extensions in debug mode. `ap dev` turns it on for you. If it printed a warning about it, run `ap dev` again, then restart the app. 4. **"A folder ... already exists and is not a link created by ap dev".** An installed copy of your extension (for example from a download) is in the way. Delete that folder (the message shows where it is), then run `ap dev` again. 5. **Old app or wrong app.** Extensions made with the default React starter need After Effects or Premiere Pro 2022 or newer (the blank starter: 2020 or newer; `minVersion` in `afterpresets.json` shows yours), and show up only in the apps listed in `afterpresets.json` (`hosts`). An After Effects extension never appears in Premiere Pro until you run `ap add host ppro`. ## The agent cannot see or reload the panel - The panel must be **open** in After Effects or Premiere Pro and `ap dev` must be running. - An extension for both apps can be reached in only one app at a time. If its panel is open in both, close it in the other app (the panel itself still works there). - If you just added a panel, restart the app. You can paste this: ```text You can't reach the panel. Run npx ap panel list and npx ap dev status and tell me what I need to do. ``` ## Login does not work If signing in never finishes, in the panel or in your browser when the agent runs `ap login`, you probably have an app that blocks network requests, such as **Radio Silence**, Little Snitch or LuLu. It blocks the connection without showing an error, so the login just waits forever. Turn the blocker off just while you log in, then turn it back on. ## Updates never arrive The same network blockers also stop your panel from getting updates. Allow After Effects and Premiere Pro (their `CEPHtmlEngine` helper) to connect to afterpresets.com. ## `ap check` shows errors `ap check` runs during `ap dev` and before every push. Errors block a push; warnings do not. One error is for you: **a paid product with licensing off**. Turn licensing on, or make the product free on AfterPresets. For everything else, paste: ```text Run ap check and fix every error. Explain each warning to me. ``` ## "You have used all production pushes for this month" Your plan's production push limit is reached (see [Pricing and commission](https://docs.afterpresets.com/selling/pricing-and-commission/)). You can still: - push to the **test** channel (`ap push --channel test`), which never counts; - **roll back** production, which never counts; - wait for the next month (the count resets on the 1st, UTC); - upgrade to Creator or Studio on AfterPresets. Check your usage with `ap whoami`. ## "I got a release email I didn't expect" Someone with access to one of your CLI logins pushed a release. Open **Settings → CLI** on afterpresets.com, click **Revoke all CLI access**, log in again on your own computers, then [roll back](https://docs.afterpresets.com/selling/publishing/#promote-and-roll-back). ## "Your CLI login is no longer valid" Run `ap login` again. `ap whoami` shows which account you are using. ## "This version is not greater than every existing release" Someone (or another computer) already published that version. Run `ap releases list` and push again with a bigger bump. ## "The runtime version in this build has been retired" AfterPresets retired an old version of the code that handles licensing and updates. Releases you already published keep working. Ask your agent: ```text Run ap upgrade, test the panel with ap dev, and tell me when it is ready to push. ``` ## Still stuck? Ask your agent to collect the details: the exact error, the output of `ap dev`, and a screenshot of the panel. Then contact AfterPresets support from [afterpresets.com](https://afterpresets.com). --- # Plugin quickstart Source: https://docs.afterpresets.com/plugins/quickstart/ A **plugin** is a new effect in After Effects' **Effect** menu, like a glow, a blur or a colour look. It draws the pixels itself, so it is fast and works in every comp, preview and render. You do not need to know how to code: your AI agent writes it, builds it, applies it in After Effects, renders frames and shows them to you. You need **After Effects 2023 or newer** on a Mac or a Windows PC. A Mac builds both the macOS and the Windows version; a Windows PC builds the Windows version only ([why](https://docs.afterpresets.com/plugins/building-and-testing/#mac-and-windows-versions)). Want a panel with buttons instead (a tool that works the app for you)? That is an [extension](https://docs.afterpresets.com/extensions/quickstart/). ## Create your plugin ### Let your agent do it For the Claude app, Claude Code, Codex, Cursor or any other AI agent, on a Mac or a Windows PC. 1. **Create a free AfterPresets account** Sign up at [afterpresets.com](https://afterpresets.com/?loginDialog=true). Already have one? Skip this step. 2. **Create a folder and open your agent in it** Pick how you use your agent: ### Claude app Make a new, empty folder, for example `SoftGlow` in your Documents. In the Claude app's **Code** tab, start a new session and choose the folder. No AI agent yet? Install the [Claude app](https://claude.ai/download) and sign in. ### Terminal agent For Claude Code, Codex or any other agent you run in a terminal. On Windows, use PowerShell. ```sh # Create a new folder mkdir ~/Documents/SoftGlow # Go into it cd ~/Documents/SoftGlow # Start your agent claude # or: codex, or your agent's command ``` ### Code editor For Cursor, VS Code or another editor with an AI agent. Make a new, empty folder, for example `SoftGlow` in your Documents. Open it with **File → Open Folder…**, then open your agent's chat. 3. **Paste this into your agent** ```text title="Paste into your agent" Set up a new After Effects plugin for me with AfterPresets, in this folder. First ask me only for its name. Do not ask what the effect should do yet. Then do every step yourself, and guide me one step at a time through anything only I can do: 1. If this folder is not empty, stop and ask me to make a new empty folder and open you there. 2. Check that node --version is 20 or newer. If Node.js is missing: on Windows run winget install -e --id OpenJS.NodeJS.LTS; on a Mac, tell me how to install the LTS version from nodejs.org, and wait. 3. Run npx -y afterpresets login (I will approve it in my browser). 4. Run npx -y afterpresets init . --platform native --app aeft --name "" 5. Read AGENTS.md, then follow docs/initial_setup.md step by step until you have shown me the starter effect rendering in After Effects. Then ask me what to build. If a command fails because your sandbox blocks the internet or saving to ~/.afterpresets, ask me to allow it to run outside the sandbox. ``` 4. **Follow your agent's instructions** Do what your agent asks. A few steps need you, once per computer: approve the login in your browser, install Homebrew on a Mac (your Mac password, and 5 to 15 minutes for Apple's developer tools), download [Adobe's plugin kit](#adobes-plugin-kit-the-sdk) with your Adobe ID, allow the test plugin folder with your password, and restart After Effects. Then it shows you the starter effect rendering, and asks what you want to build. ### Terminal For people who like to type the commands, next to Claude Code, Codex, Cursor or any other agent. 1. **Install the build tools** ### macOS Install [Homebrew](https://brew.sh) if you do not have it: paste the line from brew.sh into Terminal. It also installs Apple's **Command Line Tools** (Apple's compiler; about 1 GB, 5 to 15 minutes). Then: ```sh brew install node cmake ninja zig ``` Already have Homebrew? Check `xcode-select -p` prints a folder; if not, run `xcode-select --install` and click **Install**. ### Windows In PowerShell or Command Prompt (no administrator needed): ```powershell winget install -e --id OpenJS.NodeJS.LTS winget install -e --id Kitware.CMake winget install -e --id Ninja-build.Ninja winget install -e --id zig.zig ``` Skip the Node.js line if `node --version` already says 20 or newer. Open a new terminal afterwards so it finds the new tools. Check: `node --version` (20 or newer), `cmake --version`, `ninja --version` and `zig version` all work. 2. **Install the CLI and log in** ```sh npm i -g afterpresets ap login ``` Your browser opens. Sign in and click **Authorize CLI**. 3. **Create your plugin** ```sh ap init soft-glow --platform native --app aeft --name "Soft Glow" cd soft-glow ``` 4. **Install Adobe's plugin kit** (once per computer) ```sh ap sdk install ``` It opens Adobe's download page; download the **After Effects** SDK for your system, and it installs the zip from your Downloads folder. See [Adobe's plugin kit](#adobes-plugin-kit-the-sdk). 5. **Build and install the starter effect** ```sh ap dev ``` Leave it running: it builds the plugin, installs it into After Effects and rebuilds on every save. The first time, it may print one line to run as administrator; see [Plugin troubleshooting](https://docs.afterpresets.com/plugins/troubleshooting/#the-effect-is-not-in-after-effects). 6. **Restart After Effects and try it** When `ap dev` says **RESTART NEEDED**, save your work and restart After Effects. (On a Mac, `ap dev --restart` restarts it for you when that is safe.) Then apply **Effect → AfterPresets → Soft Glow** to a layer. 7. **Open the folder in your agent** `AGENTS.md` tells it how everything works. The agent builds, tests and publishes with the same `ap` commands you use (`npx ap ...`). ## Describe what to build Once the starter effect renders, the agent asks what your effect should do. Give it detail, in your own words: - **The look:** what it should do to the image, and how it should animate. - **References:** images or video frames of the look you want, or another effect you like. Drag them into the chat. - **The controls** you want to adjust in **Effect Controls**. It asks questions about anything unclear and tells you its plan before it builds, then shows you rendered frames after each change. ## Adobe's plugin kit (the SDK) Every After Effects effect is built with Adobe's free plugin kit, the **After Effects SDK**. Adobe does not allow AfterPresets (or anyone) to hand it out, and the download needs your Adobe ID, so you download it yourself once per computer: - `ap sdk install` opens the download page (your agent runs it for you). If it does not open, go to [developer.adobe.com/console/servicesandapis/ae](https://developer.adobe.com/console/servicesandapis/ae). Download the **After Effects** SDK (not Premiere Pro's) for your system, and read the terms Adobe shows. - The zip is checked and unpacked into `.afterpresets/sdk/` in your home folder (on Windows `%USERPROFILE%\.afterpresets\sdk\`), shared by all your plugin projects. You can delete the zip afterwards. Never give your agent your Adobe password, and never put the SDK in a public repository (for example on GitHub). Only the built plugin goes to your buyers, never the SDK files. **Next:** [Building with your agent](https://docs.afterpresets.com/plugins/building-and-testing/) --- # Building with your agent Source: https://docs.afterpresets.com/plugins/building-and-testing/ You describe the effect, the agent builds it, and you look at the frames. This page explains what happens behind the scenes so you can steer it well. ## How the agent loop works Every plugin project comes with its own rulebook and reference for the agent, plus [`ap` commands](https://docs.afterpresets.com/reference/cli/) that let it build, reach After Effects and render frames. A typical round: 1. You ask for a change. 2. The agent edits the code and saves. `ap dev` rebuilds and installs the plugin. 3. **After Effects restarts** when needed, because it loads plugins only when it starts. On a Mac, `ap dev` restarts it by itself only when that is safe (a saved or scratch project, no dialog open); otherwise the agent asks you to save and restart. On Windows the agent always asks you. It never force-quits After Effects. 4. The agent switches to a **scratch project** (your projects are never touched), applies the effect to a test comp, renders frames at full quality and **looks at them**. 5. It shows you the frames and says what it tested. "It compiles" is not done: a change is done only when the agent has rendered frames and looked at them. ## Prompts that work well Describe the look and the controls in plain words: ```text Make the glow softer at the edges and add a Softness slider from 0 to 100. Show me frames at Softness 0, 50 and 100. ``` ```text The effect looks banded at 16 bits per channel. Find out why, fix it, and show me before/after frames at 8, 16 and 32 bits. ``` ```text Rendering is slow on a 4K comp. Measure how long a frame takes, make it faster without changing the look, and show me the numbers. ``` ```text Check everything and push a test release. ``` Good habits: - **Ask for frames.** "Show me frames" is the fastest way to check the work. - **Test every bit depth.** After Effects projects run at 8, 16 or 32 bits per channel; ask for all three. - **One change at a time.** Small requests are easier to check. - **Say what you see.** "The glow is cut off at the layer edge" is more useful than "it looks wrong". ## Names that never change - The **match name** is After Effects' hidden ID for your effect. It is saved in every project that uses it, so it is fixed at the first release. The menu name and category can change later. - Each control has a permanent **id**. Controls can be renamed and new ones added, but an id is never reused, or saved projects would break. `ap check` stops a push that changes either one. ## Mac and Windows versions Plugins run on macOS and Windows, but each system needs its own build. | You build on | Your releases include | | --- | --- | | **A Mac** | macOS **and** Windows. Your Mac builds the Windows version too. | | **A Windows PC** | **Windows only.** | **On a Mac:** the Windows version is built on your Mac but cannot be tested there. Before you sell to Windows users, install the release ZIP on a Windows PC with `windows-install.bat` and try the effect. Report problems to your agent with the exact message Windows or After Effects shows. **On Windows:** Apple only allows Mac software to be built on a Mac, so your releases are Windows-only. Shipping a Mac version is up to you: to add one, open the same project on a Mac, follow the macOS steps of the [quickstart](https://docs.afterpresets.com/plugins/quickstart/) (skip creating the project: open your existing folder), and push the next release from the Mac: it contains both versions. The systems on your listing are set automatically from the builds in your release. Test builds render without the licence watermark; see [Test builds](https://docs.afterpresets.com/selling/licensing/#test-builds). **Next:** [Plugin troubleshooting](https://docs.afterpresets.com/plugins/troubleshooting/) --- # Plugin troubleshooting Source: https://docs.afterpresets.com/plugins/troubleshooting/ Most problems have a quick fix. When in doubt, paste the message into your agent and ask it to explain and fix it. Your agent also has `docs/afterpresets/debugging.md` in the project, a longer checklist written for it. Building an extension (a panel)? See [Extension troubleshooting](https://docs.afterpresets.com/extensions/troubleshooting/). ## Building - **"Cannot build yet: Adobe's After Effects SDK is not installed".** Ask your agent to install the SDK, then download the **After Effects** SDK for your system from the page that opens (Adobe ID sign-in). See [Adobe's plugin kit](https://docs.afterpresets.com/plugins/quickstart/#adobes-plugin-kit-the-sdk). - **The SDK zip is not accepted.** Make sure it is the **After Effects** SDK (not Premiere Pro's), for **your system** (macOS or Windows), and fully downloaded. A newer SDK than the tools know may need an update: ask your agent to run `ap upgrade`. - **Compiler errors.** Normal while your agent works: `ap dev` lists them with file and line, and the agent fixes them. If the untouched starter does not build, the SDK or a tool is wrong (see above and below). ### macOS - **"cmake", "ninja" or "zig" not found.** Ask your agent to run `brew install cmake ninja zig`. If `brew` itself is missing, install Homebrew from [brew.sh](https://brew.sh). - **"xcrun: error" or no compiler.** The Command Line Tools are missing or broken after a macOS update. Ask your agent to run `xcode-select --install`, then click **Install**. ### Windows - **"cmake", "ninja" or "zig" not found.** Ask your agent to run the winget line the message shows, for example `winget install -e --id Kitware.CMake`, `winget install -e --id Ninja-build.Ninja` or `winget install -e --id zig.zig`. Then start a new chat (or open a new terminal) so the new tools are found. - **"node" or "npx" not found.** Install the LTS version from [nodejs.org](https://nodejs.org) (or `winget install -e --id OpenJS.NodeJS.LTS`), then start a new chat. - **"The macOS version (.plugin) can only be built on a Mac".** Expected on Windows: your releases are Windows-only. See [Mac and Windows versions](https://docs.afterpresets.com/plugins/building-and-testing/#mac-and-windows-versions). - **"SDK … is not in AfterPresets' tested list yet".** A warning, not an error: that Windows SDK download has not been checked by AfterPresets yet. The build continues. Tell AfterPresets support which SDK version you have. - **"Quit After Effects, then build again".** Windows refused to replace the plugin file while After Effects used it. Quit After Effects and save again. ## The effect is not in After Effects 1. **Restart After Effects.** It loads plugins only when it starts. Your agent tells you when a restart is needed; save your work first. On Windows it is never restarted for you. 2. **Did the build install?** `ap dev` should say "Dev build installed". If it says the dev plugin folder needs an administrator, this is needed once: ### macOS Approve the macOS password window if one appears, or paste the one line your agent gives you (it starts with `sudo`) into the Terminal app and type your Mac password (nothing shows while you type). ### Windows Open **PowerShell as administrator** (right-click **Start** → **Terminal (Admin)**), paste the one line your agent gives you, press Enter, and tell the agent "Done". Your agent never runs this itself. 3. **An older installed copy.** If you also installed a release of the same plugin with the install script, both copies may load. Remove the installed one (see [Uninstall a plugin](https://docs.afterpresets.com/selling/buyers/#uninstall-a-plugin)). 4. Ask your agent to follow `docs/afterpresets/debugging.md`: it checks After Effects' plugin list, its plugin loading log and the built file. ## The render does not change after an edit After Effects still runs the previous build. Restart After Effects. Your agent's frame captures clear After Effects' caches, so after a restart the frames show the new code. ## After Effects stops answering the agent - **A dialog is open** in After Effects (an error, a crash report, a licence or update message). Look at After Effects, answer the dialog, and tell your agent. - **After a crash** After Effects may offer to start in **Safe Mode**. Choose normal mode: Safe Mode turns off extensions, including the AfterPresets dev bridge the agent uses. Your agent never force-quits After Effects for this reason; if you have to, expect this prompt. - **The dev bridge is not loaded.** Ask your agent to call `host_bridge`; it says what to do (usually: restart After Effects once). ## The SDK guide could not be downloaded The first `ap dev` converts Adobe's public SDK guide into `docs/afterpresets/sdk/` for your agent. It needs an internet connection the first time (GitHub must be reachable). Reconnect and ask your agent to run `npx ap docs`. Once downloaded, it works offline for every project. ## Buyers who get stuck Installing, the one-time security prompts, signing in and uninstalling are covered in [Help for your buyers](https://docs.afterpresets.com/selling/buyers/). ## Still stuck? Ask your agent to collect the details: the exact message, the output of `ap dev`, your macOS or Windows version and your After Effects version. Then contact AfterPresets support from [afterpresets.com](https://afterpresets.com). --- # Pricing and commission Source: https://docs.afterpresets.com/selling/pricing-and-commission/ Every extension and plugin is sold as a product on AfterPresets. You set the price on the website; your agent sets licensing up in the code. Everything on this page is the same for extensions and plugins. ## Your listing and price Every project starts as a **private, free** listing when it is created. To change it, open it in the AfterPresets dashboard under **Extensions & plugins** and edit the listing: title, description, images, price, and visibility (private, unlisted, or public). You can sell for a **one-time price** (updates included) or give it away for **free**. Subscriptions are not available yet. A paid product must have licensing on; see [Licensing](https://docs.afterpresets.com/selling/licensing/). The systems your listing shows (macOS, Windows) are set automatically; for plugins they depend on where you build, see [Mac and Windows versions](https://docs.afterpresets.com/plugins/building-and-testing/#mac-and-windows-versions). ## Commission and plans AfterPresets takes a commission on each sale. Payments go to your connected Stripe account, and you pay Stripe's fees. Your plan sets the commission and how many production releases you can publish each month, and how many testers each extension or plugin can have. | Plan | Commission on extensions, plugins, Action packs and bundles | Commission on digital products | Production pushes per month | Testers per product | | --- | --- | --- | --- | --- | | Free | 4.99% | 3.99% | 4 | 3 | | Creator | 4.99% | 3.99% | 20 | 10 | | Studio | 2.99% | 2.99% | Unlimited | Unlimited | Digital products are downloadable files. A bundle pays the Action pack rate, even if it includes files. Test releases and rollbacks never count toward the push limit. Promoting a test release to production counts. The count resets at the start of each calendar month (UTC). Run `ap whoami` (or ask your agent "which plan am I on?") to see your plan, how many pushes you have used, and your tester limit. If you move to a plan with a lower tester limit, existing testers stay; you can't add more until you're under the new limit. ## Refunds When a purchase is refunded, the buyer's licence for your product is revoked. It locks at the next background licence check (within about 12 hours while they are online), or when their offline grace ends. **Next:** [Licensing](https://docs.afterpresets.com/selling/licensing/) --- # Licensing Source: https://docs.afterpresets.com/selling/licensing/ Licensing decides who can use your product. It is built in and works the same way for extensions and plugins. Every new project starts with licensing **on**. | Your product is... | Licensing | | --- | --- | | **Paid** | **Required.** AfterPresets refuses to publish a paid product without it. | | **Free** | Optional. With it on, people claim the free product on AfterPresets and sign in. With it off, anyone with the files can use it. | ## What buyers see Buyers never copy a key. They sign in with their AfterPresets account: - **Extensions** show a license screen with a **Sign in with AfterPresets** button. It shows a short code and opens the browser, the buyer confirms the code on their account, and the extension unlocks a few seconds later. If the extension has several panels, they sign in once for all of them. - **Plugins** have a status button in **Effect Controls** (**License...**; its name line shows the status, for example "License: sign in"). It and the **Options** link at the top of the effect open a dialog with **Sign in**. Before signing in, a paid effect renders with a watermark. With licensing off, the button says **About...** instead. Each computer gets its own sign-in that only works for your product, so your code never sees the buyer's AfterPresets account details. Moving from license keys on another store? Your existing buyers claim the new version with their email: see [Move an existing extension](https://docs.afterpresets.com/extensions/migrating/). ## Turn licensing on or off ### Let your agent do it For a free product: ```text title="Paste into your agent" This product is free. Turn licensing off, remove the license screen (or the watermark, for a plugin), and show me what users see now. ``` For a paid one: ```text title="Paste into your agent" This product is paid. Keep licensing on and show me a screenshot of every license status buyers can see, then ask me for feedback. ``` ### Terminal - **Plugins:** set `"license": true` or `"license": false` in `effect.json` ([reference](https://docs.afterpresets.com/reference/effect-json/)). - **Extensions:** licensing is an option of `AP.boot` in each panel's code, together with the license screen. Ask your agent, or see [Licensing](https://docs.afterpresets.com/reference/runtime/licensing/) in the runtime reference. Run `ap check` afterwards: it fails if a paid product has licensing off. ## Computers per purchase You choose how many computers one purchase can run on: **1 to 5, default 2**. Change it in the dashboard under **Extensions & plugins → your product → Computers per purchase**. When buyers hit the limit, the sign-in page tells them and links to their account settings, where they remove an old computer and confirm again. Signing out inside the product also frees that computer's slot. ## Working offline After signing in, the product works straight away and re-checks the licence online in the background, about every 12 hours. By default it needs that check to succeed: a buyer who stays offline is asked to connect. You can allow a grace period of up to **30 days**: the product keeps working offline if it was checked online within that many days. The tradeoff: grace helps people on planes or in studios without internet, but a refunded or shared licence also keeps working offline for that long. 7 days is a common choice. ```text title="Paste into your agent" Allow buyers to use it offline for 7 days. ``` ## Test builds Plugin test builds from `ap dev` render **without** the watermark, so you can judge the look. Release builds always enforce the licence. To see the locked state while testing: ```text title="Paste into your agent" Turn on licence enforcement for dev builds, tell me when to restart After Effects, then show me frames of the locked effect and screenshots of the Options dialog. ``` For an extension, ask your agent to show you every license screen state; it can simulate each one. Licensing makes copying harder for casual users. Like every licence check that runs on the buyer's computer, it cannot stop a determined attacker, so do not promise buyers that it is uncrackable. **Next:** [Testers and publishing](https://docs.afterpresets.com/selling/publishing/) --- # Testers and publishing Source: https://docs.afterpresets.com/selling/publishing/ Publishing sends a new version of your extension or plugin to people's computers. Every release is signed by AfterPresets, packaged with install scripts, and comes with your changelog. It works the same for extensions and plugins. ## Two channels: test and production | Channel | Who gets it | Counts toward your monthly limit | | --- | --- | --- | | **test** | You and the testers you invite ([limit depends on your plan](https://docs.afterpresets.com/selling/pricing-and-commission/#commission-and-plans)) | No | | **production** | Everyone who owns the product | Yes | Invite testers, push to **test** first, try it, then promote it to production. ## Testers Testers get test-channel releases before everyone else. Inviting one takes two steps: 1. **Add their email.** It must be the email of their AfterPresets account (they can create one for free). 2. **Send them your tester link**, `afterpresets.com/p//test`. You'll find it in the dashboard under **Extensions & plugins → your product → Testers**, and `ap testers add` prints it too. AfterPresets doesn't email testers. You send the link yourself. Your tester opens the link and signs in with the invited email. If they haven't verified that email yet, the page asks them to. Then they download the test build, install it, and sign in inside the app with the same account. Later test builds come in as updates. Only invited emails can open the link. It works whether or not you've published the listing, so you can test before launch and keep testing after. ### Let your agent do it ```text title="Paste into your agent" Add friend@example.com as a tester and give me the link to send them. ``` Or use the dashboard on afterpresets.com: **Extensions & plugins → your product → Testers**. ### Terminal ```sh ap testers add friend@example.com # prints the tester link ap testers list # testers and the link ap testers remove friend@example.com ``` Push a test release before you invite anyone. Until you do, the tester page has nothing to download. ## Publish a release ### Let your agent do it ```text title="Paste into your agent" Push a test release. Write the release notes for buyers, in plain language, based on what we changed since the last release. ``` When the test release is good, say "publish it to everyone". The agent pushes a production **draft** and gives you a link. Open it, check the release notes in the preview, and click **Publish to production**. Nothing reaches buyers until you do. ### Terminal In the project folder: ```sh ap push ``` It asks you two things: 1. **Channel**: `test` or `production`. 2. **New version**: pick 1.0.1 (patch), 1.1.0 (minor) or 2.0.0 (major) by number. Enter picks the patch. Or pass the answers as flags, with release notes: ```sh ap push --channel test --bump patch -m "- Adds a Reverse button" ``` A production push opens its draft on afterpresets.com. Write the release notes there (buyers read them before they update, so write them for buyers: "Adds a Reverse button. Fixes renaming in locked comps."), check the preview, and click **Publish to production**. The notes are Markdown: type it, or use the formatting buttons, and the preview beside the editor shows what buyers read. The draft keeps until you publish it, so you can come back later. Before uploading, `ap push` checks your project and stops if something is wrong. ### The release email After every production release (and every promote or rollback of production), AfterPresets emails you what went out, when, and from which computer. If it wasn't you, open **Settings → CLI** on afterpresets.com and revoke access. CLI logins that go unused for 90 days stop working on their own. ## Promote and roll back Open the dashboard under **Extensions & plugins → your product → Releases**. Each release shows its notes and which channel it is on. A production draft has **Review and publish**; any release has **Edit notes**. - **Promote**: make a tested release the production version. Counts as a production push. - **Roll back**: point production back to an older release if something went wrong. Does not count. Buyers on the newer version are offered the older one with its changelog. Promoting and rolling back production happen here on the website. Your agent, or `ap releases promote` / `ap releases rollback`, gives you the link. ```sh ap releases list ap releases promote 1.2.0 ap releases rollback 1.1.0 ``` A release's build is never changed: to fix one, push a new version. You can correct its release notes at any time with **Edit notes**. A draft you don't want can be discarded. ## Delete or archive At the bottom of **Extensions & plugins → your product** in the dashboard: - **Delete**: only while nobody outside you and your testers can have it: nothing was ever released to production, nobody bought it, and it isn't in a bundle. This removes the product, its listing, every release and tester invite for good. Its bundle ID can never be registered again, so pick a new slug if you start over. - **Archive**: for everything else. The listing becomes private, so nobody new can buy or download it from AfterPresets. People who already have it keep their license and still get updates, and you can keep pushing releases. **Unarchive** puts the listing back the way it was. An extension in a published bundle can't be archived until you take it out of the bundle. **Next:** [Updates](https://docs.afterpresets.com/selling/updates/) --- # Updates Source: https://docs.afterpresets.com/selling/updates/ When you publish to production, buyers get the new version automatically, with your changelog. Every update is checked for AfterPresets' signature before anything is installed. If the check fails, nothing changes and the current version keeps working. ## Extensions Installed copies check for updates when they start and every 6 hours. You choose what buyers see: | Mode | What buyers see | | --- | --- | | **Background** (default) | The update installs on its own, then an **Update ready** popup lists what changed, with **Reload now** and **Later**. | | **Prompt** | Your update screen with the changelog, **Install** and **Later**. After installing, the same **Update ready** popup. | | **Silent** | Nothing. The new version starts the next time they open the panel. | If an update cannot be installed, buyers see **Update couldn't finish** with a link to download the extension again. ```text title="Paste into your agent" Ask buyers before installing updates (prompt mode) instead of installing in the background. Explain the tradeoffs first. ``` ## Plugins A running effect is never replaced: the new version is used the next time After Effects starts. | Mode | What buyers get | | --- | --- | | **Background** (default) | Downloads and installs on its own. The effect shows **"Update: restart AE"**. | | **Notify** | Tells buyers an update exists; it downloads only when they choose to. | | **Manual** | Checks only when buyers ask, in the effect's Options dialog. | | **Off** | No updates. | ```text title="Paste into your agent" Only tell buyers about plugin updates instead of installing them in the background (notify mode). Explain the tradeoffs first. ``` Stay on the default unless you have a reason: buyers on older versions miss your fixes. ## Testing updates Builds from `ap dev` never install updates. To try an update for real, push two test releases, install the first from its download, and wait for (or restart into) the second. **Next:** [Help for your buyers](https://docs.afterpresets.com/selling/buyers/) --- # Help for your buyers Source: https://docs.afterpresets.com/selling/buyers/ Buyers download one ZIP from your product page after they buy or claim it. It contains your product, two install scripts (`mac-install.command` and `windows-install.bat`) and a `readme.txt` with the steps. They quit After Effects or Premiere Pro, unzip, and run the script for their computer once. Updates arrive by themselves after that. ## The first install The first time, the system may block the script. Send buyers who get stuck here. ### macOS macOS may say it cannot verify `mac-install.command` and offer only **Done** or **Move to Trash**. Click **Done**, then: 1. Open **System Settings → Privacy & Security**. 2. Scroll down to the message about `mac-install.command` and click **Open Anyway**, then confirm with your Mac password or Touch ID. 3. Double-click `mac-install.command` again and choose **Open**. 4. Enter your Mac password if macOS asks for administrator permission. This is needed **once**: later updates need no password. This happens because the script is not signed with an Apple certificate. The product itself is checked by AfterPresets' own signature when it updates. ### Windows 1. **Extract** the ZIP first (right-click → **Extract All**). Do not run the script from inside the ZIP. 2. If Windows shows **"Windows protected your PC"** (SmartScreen), click **More info**, then **Run anyway**. 3. When Windows asks "Do you want to allow this app to make changes to your device?", click **Yes**. ## Common questions - **It is not in the menu.** Quit the app completely and open it again: After Effects and Premiere Pro look for new extensions and plugins only when they start. Extensions are in **Window → Extensions**; effects are in the category you chose in the **Effect** menu, or buyers can search the name in **Effects & Presets**. - **Signing in.** Click **Sign in with AfterPresets** on the extension's license screen, or the effect's **License...** button in **Effect Controls**, and approve in the browser with the account they bought it with. See [what buyers see](https://docs.afterpresets.com/selling/licensing/#what-buyers-see). - **Bought it on another store before.** If the developer moved it to AfterPresets, they send a claim link. Open it, sign in with the email used for the original purchase and click **Claim your copy**. Then remove the old copy. - **Sign-in never finishes.** An outbound firewall (Little Snitch, LuLu, Radio Silence and similar) may block the app. Allow its connections to afterpresets.com. - **A plugin still says "Update installed" after a restart.** Quit After Effects completely (on macOS: **After Effects → Quit**, not just closing the window) and open it again. ## Uninstall a plugin Quit After Effects and delete the plugin's folder: - **macOS:** in Finder choose **Go → Go to Folder**, paste `/Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore/AfterPresets/` and move the plugin's folder to the Trash. - **Windows:** open `C:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore\AfterPresets\` and delete the plugin's folder. Projects that use the effect show it as missing until it is installed again. --- # Reference Source: https://docs.afterpresets.com/reference/ The exact details, for when you or your agent need them. You do not need to read these to get started: the [quickstarts](https://docs.afterpresets.com/) cover everything a first project needs, and your agent already has its own copy of the technical reference inside each project (`docs/afterpresets/`). ## For both | Page | What is in it | | --- | --- | | [ap commands](https://docs.afterpresets.com/reference/cli/) | Every `ap` command and its options | ## Extensions | Page | What is in it | | --- | --- | | [afterpresets.json](https://docs.afterpresets.com/reference/afterpresets-json/) | The project file: name, version, apps, panels | | [Runtime API (AP.*)](https://docs.afterpresets.com/reference/runtime/) | What your agent reads before it writes panel code: boot, licensing, updates, calling the app, panels, files, storage | ## Plugins | Page | What is in it | | --- | --- | | [effect.json](https://docs.afterpresets.com/reference/effect-json/) | The effect: names, controls, licensing and update options | | [Plugin runtime](https://docs.afterpresets.com/reference/plugin-runtime/) | What the built-in licensing and update code does inside your effect | --- # ap commands Source: https://docs.afterpresets.com/reference/cli/ `ap` is the AfterPresets command-line tool. Your agent runs it for you (it uses the same commands to build, look at and click your panel, run scripts in the app and publish); you only need this page if you like the terminal. Install it with `npm i -g afterpresets`, or run it without installing as `npx afterpresets ` (inside a project, `npx ap ` uses the project's own copy). `ap --help` lists the commands and `ap --help` shows the details of one. `ap --version` prints the version. Typing just `ap` (or `npx afterpresets`) in a folder that is not a project starts the questions of `ap init`. ## Account | Command | What it does | | --- | --- | | `ap login [--no-browser]` | Opens afterpresets.com in your browser and waits until you approve (**Authorize CLI**). `--no-browser` prints the link instead. The login is saved in `~/.afterpresets/credentials.json`, readable only by you. | | `ap logout` | Revokes this computer's login on AfterPresets and deletes the saved file. | | `ap whoami` | Your username, plan, and production pushes used this month (UTC). | ## Create a project ```sh ap init [--app aeft|ppro] [--platform cep|native] [--starter react|blank] [--name ] [--slug ] [--skip-install] ``` Registers a new product on AfterPresets, copies the starter into `` (`.` for the current folder), writes `afterpresets.json`, copies the agent reference into `docs/afterpresets/`, and runs `npm install`. Needs `ap login`. Its permanent bundle ID is `com.afterpresets..`. | Option | Meaning | | --- | --- | | `--app` | `aeft` (After Effects), `ppro` (Premiere Pro), or `aeft,ppro` for both. Required when there is no terminal to ask in (for example when an agent runs it). | | `--platform` | `cep` (an extension, the default) or `native` (an After Effects effect plugin). **Permanent**: another platform later is a separate product. | | `--starter` | Extensions: `react` (the default) builds the panels with [React](https://react.dev) components styled with [Tailwind CSS](https://tailwindcss.com) v4. `ap init` adds both to the project, pinned to the versions the CLI supports; `ap upgrade` updates them. It needs After Effects or Premiere Pro 2022 or newer. `blank` is plain HTML, CSS and JavaScript and runs in every supported version (2020 and newer). In a terminal, `ap init` asks; otherwise it uses `react`. | | `--name` | The product name. | | `--slug` | The short ID used in the bundle ID. | | `--skip-install` | Do not run `npm install`. | Examples: ```sh ap init my-tool --app ppro --name "My Tool" ap init my-tool --app aeft,ppro --name "My Tool" ap init my-tool --app aeft --starter blank --name "My Tool" ap init soft-glow --platform native --app aeft --name "Soft Glow" ``` ## Develop ### `ap dev [--once] [--no-reload] [--restart] [--background]` **Extensions:** builds a readable development copy into `dist/dev//`, links it into the app's extensions folder, turns on `PlayerDebugMode` (so the app loads unsigned extensions), runs `ap check`, and rebuilds whenever a file changes. Open panels reload themselves after each rebuild. Panel number *i* in `afterpresets.json` gets the debugging port `debugPort + i`. **Plugins:** builds the plugin for this computer, installs it into `MediaCore/AfterPresets Dev/`, installs the dev bridge (how the agent reaches After Effects), converts Adobe's SDK guide into `docs/afterpresets/sdk/`, and says when After Effects must restart. Rebuilds on save. | Option | Meaning | | --- | --- | | `--once` | Build and install once, without watching. | | `--no-reload` | Extensions: turn off automatic panel reload. | | `--restart` | Plugins, macOS: restart After Effects when needed, but only when it is safe (the open project is saved, or a scratch project). It never force-quits. On Windows After Effects is never restarted automatically. | | `--background` | Start the watcher as a background process, wait for the first build, print its output and return. The output keeps going to `dist/dev/ap-dev.log`. This is how agents run it. | `ap dev status` shows the last build (ok or failed, its errors, and for plugins whether After Effects must restart). `ap dev stop` stops the watcher; the installed build stays. ### `ap panel` Looks at and drives your open development panels like a user, through each panel's debugging port (development builds only; the panel must be open). Every command takes `--panel ` (default: the first panel). | Command | What it does | | --- | --- | | `ap panel list` | Every panel, its port, whether it can be reached, and the last build. | | `ap panel snapshot` | An outline of what the panel shows, with a ref like `e12` on everything you can click or type in. Refs change with every snapshot. | | `ap panel screenshot [] [--out ]` | Saves a PNG of the panel (or of one element) and prints its path. Without `--out` it goes to `dist/dev/shots/`. | | `ap panel click ` | Clicks an element (or `--selector `, `--text `; `--double`). | | `ap panel type [] ` | Replaces the text of a field (or `--into