Skip to content

effect.json

The file that describes an After Effects effect plugin - menu name, permanent match name, category, controls with permanent ids, licensing, update mode and render flags.

effect.json sits at the top of every plugin project and describes the effect. The build turns it into everything After Effects needs to know about the effect (its PiPL resource and the generated C++ headers), so the names, controls and flags can never disagree. Never edit the generated files; change effect.json instead.

This is the starter effect:

{
"name": "Soft Glow",
"matchName": "AP softglow 1a2b3c",
"category": "AfterPresets",
"description": "Tints the layer toward a colour.",
"license": true,
"updates": "background",
"params": [
{ "key": "amount", "id": 1, "type": "slider", "name": "Amount", "min": 0, "max": 100, "default": 50, "precision": 1, "display": "percent" },
{ "key": "color", "id": 2, "type": "color", "name": "Color", "default": "#FF4000" },
{ "key": "mode", "id": 3, "type": "popup", "name": "Mode", "choices": ["Tint", "Screen", "Multiply"], "default": "Tint" },
{ "key": "gradient", "id": 4, "type": "checkbox", "name": "Gradient", "label": "Fade across layer", "default": false },
{ "key": "center", "id": 5, "type": "point", "name": "Gradient Center", "default": [50, 50] },
{ "key": "angle", "id": 6, "type": "angle", "name": "Gradient Angle", "default": 90 }
]
}
Field Meaning
name The name in the Effect menu (up to 31 bytes). Can change later.
matchName After Effects’ hidden, permanent ID for the effect (up to 31 bytes). Saved in every project that uses it. Never change it after the first release; ap check blocks a push that does. ap init makes a unique one from your bundle ID.
category The Effect menu folder (up to 31 bytes). Spell it the same in every effect you make, or you get two folders.
description Text for the About box. Optional.
supportUrl A link for buyers. Optional.
license true (default), false, or { "offlineGraceDays": 0-30, "checkInBackground": true }. Paid products must keep licensing on. See Licensing.
updates "background" (default), "notify", "manual" or "off". See Updates.
params The controls in Effect Controls, in order (below).
outFlags, outFlags2 Optional. The effect’s capabilities for After Effects (deep colour, Smart Render, multi-frame rendering and more). Leave them out to use the starter’s defaults; your agent changes them only when the effect needs it.

Every control has:

Field Meaning
key A short name used in the code (for example amount becomes AP_PARAM_AMOUNT). input, license and count are reserved.
id A permanent number from 1 to 9000, unique in the effect. Never reuse or change an id after the first release: saved projects find their values by it.
type One of the types below.
name The label in Effect Controls (up to 31 bytes). Can change later.
type Extra fields
slider default, min, max, optional sliderMin / sliderMax (the slider’s visible range), precision (0 to 6 decimals), display ("percent", "pixels" or "none")
angle default in degrees
color default as "#RRGGBB"
point default as [x, y] in percent of the layer ([50, 50] is the centre)
checkbox default true or false, optional label (text next to the box)
popup choices (a list of names) and default (one of them)

The effect’s License… / About… status button is added by the starter itself; do not add it to params.

ap check validates effect.json and compares it with the last release.