Run custom ExtendScript
run_extendscriptRun custom ExtendScript inside After Effects to handle tasks not covered by other tools, with access to the CS style library and returnable results in one undo group.
Instructions
Escape hatch for anything the other tools don't cover. Code is a function body (ES3: var, no arrow functions, no JSON); return a value to get it back. The style library is available as CS.* (CS.comp, CS.layer, CS.animate, CS.addEffect, CS.profile …). Wrapped in one undo group.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "run_extendscript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| label | No |