Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

after-effects

БесплатноБез исполняемых скриптовНе проверен

Automate Adobe After Effects workflows. Use when a user asks to script After Effects with ExtendScript or CEP, batch render compositions, automate motion…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub12 установок в других каталогах

Об этом скилле

After Effects

Overview

Automate Adobe After Effects — the industry-standard motion graphics and compositing tool. This skill covers ExtendScript for programmatic project manipulation, CEP panel development, expressions for procedural animation, aerender CLI for headless batch rendering, MOGRT template automation, data-driven graphics, and production pipeline integration. Build repeatable workflows for social media content, broadcast graphics, and VFX pipelines.

After Effects is commercial software; scripts and aerender need a licensed install (render-only machines can run aerender without signing in, see Step 5).

Instructions

Step 1: Scripting Approaches

  1. ExtendScript (.jsx / .jsxbin) — Full project DOM access, runs inside AE
  2. Expressions — JavaScript evaluated per frame on a single property
  3. CEP panels — HTML/JS panels that call ExtendScript through CSInterface.evalScript
  4. aerender — Command-line renderer (headless)
  5. UXP plugins — Adobe documents an After Effects UXP API (require("aftereffects"), same object model) as a beta with minimum version 27.0; the released app is 26.5, so ship CEP + ExtendScript today

Run an ExtendScript:

# In the app: File > Scripts > Run Script File. Files in the Scripts folder appear in File > Scripts;
# Scripts/Startup and Scripts/Shutdown run automatically; "ScriptUI Panels" scripts appear in the Window menu.

# Windows: send a file (-r) or a script string (-s) to the running instance
"C:\Program Files\Adobe\Adobe After Effects 2025\Support Files\AfterFX.exe" -r "C:\motion\scripts\social-cards.jsx"

# macOS: the AppleScript command DoScript takes script text
osascript -e 'tell application "Adobe After Effects 2025" to DoScript "$.evalFile(\"/Users/maria/motion/scripts/social-cards.jsx\")"'

Adobe writes the install folder as Adobe After Effects <version>; 2025 is an example, so use the folder and application name on your machine. Scripts cannot write files or use the network until Settings/Preferences > Scripting & Expressions > Allow Scripts To Write Files And Access Network is enabled.

Step 2: ExtendScript — Project & Layer Operations

app.beginUndoGroup("Build social post");
var project = app.project;

// Create composition: name, width, height, pixel aspect, duration (s), frame rate
var comp = project.items.addComp("Social Post", 1080, 1920, 1, 10, 30);

// Import footage
var footage = project.importFile(new ImportOptions(new File("/Users/maria/motion/footage/skyline.mp4")));

// Add layers to comp
var layer = comp.layers.add(footage);
var textLayer = comp.layers.addText("Hello World");

// Configure text
var textProp = textLayer.property("Source Text");
var textDoc = textProp.value;
textDoc.fontSize = 72;
textDoc.fillColor = [1, 1, 1];
textDoc.font = "Arial-BoldMT";          // PostScript name
textProp.setValue(textDoc);

// Animate position with easing
var position = textLayer.property("Position");
position.setValueAtTime(0, [540, 1100]);
position.setValueAtTime(1, [540, 960]);
var ease = new KeyframeEase(0, 75);      // speed, influence (0.1–100)
// Position is a spatial property: the ease array holds ONE KeyframeEase.
// Non-spatial 2D/3D properties need one per dimension (the scripting guide's Scale example passes three).
position.setTemporalEaseAtKey(1, [ease]);
position.setTemporalEaseAtKey(2, [ease]);

// Add an expression control and drive an expression with it
var slider = textLayer.property("Effects").addProperty("Slider Control");
slider.property("Slider").setValue(12);
position.expression = 'wiggle(2, effect("Slider Control")("Slider"))';
app.endUndoGroup();

Step 3: Template Automation (Data-Driven)

// template-batch.jsx — one comp per CSV row, text layers replaced by column name
// CSV header: Title,Subtitle,Date — the template has text layers with those names
function readCSV(path) {                 // simple parser: no quoted commas
    var file = new File(path), rows = [], header, line, cells, row, i;
    if (!file.open("r")) throw new Error("Cannot open " + path);
    header = file.readln().split(",");
    while (!file.eof) {
        line = file.readln();
        if (line === "") continue;
        cells = line.split(",");
        row = {};
        for (i = 0; i < header.length; i++) row[header[i]] = cells[i];
        rows.push(row);
    }
    file.close();
    return rows;
}

function processTemplate(comp, data) {
    for (var i = 1; i <= comp.numLayers; i++) {      // collections are 1-based
        var layer = comp.layer(i);
        if (layer instanceof TextLayer && data.hasOwnProperty(layer.name)) {
            var textProp = layer.property("Source Text");
            var textDoc = textProp.value;
            textDoc.text = data[layer.name];
            textProp.setValue(textDoc);
        }
    }
}

app.beginUndoGroup("Batch from CSV");
var templateComp = app.project.activeItem;
var csvData = readCSV("/Users/maria/motion/data/events.c
Полный SKILL.md на GitHub

Установить after-effects в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл after-effects?

Automate Adobe After Effects workflows. Use when a user asks to script After Effects with ExtendScript or CEP, batch render compositions, automate motion graphics templates (MOGRTs), build render pipelines with aerender, create expressions for animations, manage project files programmatically, automate text and image replacements in templates, build data-driven motion graphics, integrate After Effects with CI/CD, or control AE via command line. Covers ExtendScript, CEP panels, expressions, aerender CLI, and template automation.

Как установить скилл after-effects?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл after-effects запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить after-effects с