Logo di Aftereffects Declarative

Aftereffects Declarative

Community
yumehiko
aftereffects-declarative

Primary After Effects workflow using ae-cli apply-scene with declarative JSON (composition/assets/comp layers/footage cuts/audio/text styles/layout/layers/animations/expressions/parent/repeater/effect params). Use this by default for composition building and repeatable footage, audio, text, or visual-bounds layout editing.

Panoramica

Pubblicato dayumehiko
Repositoryae-agent-skills
Nome della skillaftereffects-declarative
Stelle
38
Fork
3
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da yumehiko su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Aftereffects Declarative in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/yumehiko/ae-agent-skills/tree/main/skills/aftereffects-declarative
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yumehiko/ae-agent-skills.git /tmp/ae-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ae-agent-skills/skills/aftereffects-declarative .claude/skills/aftereffects-declarative
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Aftereffects Declarative in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Aftereffects Declarative non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Aftereffects Declarative non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

aftereffects-declarative

After Effects を宣言型 JSON で構築する標準スキル。
新規構築・再実行性の高い編集でこのスキルを優先し、既存シーンの外科的な部分修正は命令型スキルを優先する。

目的

  • 1ファイルの scene JSON で comp 構成を一括適用
  • 再実行時は layers[].id で upsert 再利用
  • 人手編集後も再適用しやすい運用に寄せる

使い分け(重要)

  • 宣言型を使う:
    • 新規 comp / 新規レイヤー群を組み上げる
    • 同種変更を複数箇所へ展開する
    • scene JSON を成果物として残し、再実行可能にしたい
  • 命令型(aftereffects-cli)を使う:
    • 人間が作った既存シーン(scene JSON 未管理)へ部分修正を入れる
    • 複雑な既存レイヤーに expression をピンポイント適用する
    • comp 全体の再宣言を避け、局所的に安全修正したい
  • 併用方針:
    • まず命令型で調査・局所修正し、安定して繰り返す段階で宣言型へ移行する

基本フロー

  1. ae-cli health で疎通と、開いている .aep の絶対パスを確認
  2. ~/ae-agent-skills/scene.schema.json と ~/ae-agent-skills/references/scene.example.json を確認(フッテージ編集は footage-edit.example.json、プリコンポ配置は comp-assembly.example.json も確認)
  3. 対象 .aep と同じ案件ディレクトリに scene JSON と案件固有の生成スクリプトを作成/更新(サブディレクトリ名は _edl/ を推奨するが強制しない)
  4. --expect-project <対象.aep> を付けて --validate-only で検証
  5. 同じ --expect-project を付けて実適用
  6. apply失敗時はCLIの Rollback 診断を読み、succeeded でもcomp / ProjectItem / layerを確認する。rollback後は内容が戻ってもdirtyがtrueになり得る
  7. compを直接指定した layers / properties --include-keyframes / bounds / expression-errors で数値確認
  8. snapshot で見た目をPNG確認
  9. scene JSON は .aep と一緒に案件側の履歴管理・同期へ含める。作業中/完了版を別ディレクトリへコピーして二重管理しない

参照ファイル(固定)

  • schema: ~/ae-agent-skills/scene.schema.json
  • サンプル: ~/ae-agent-skills/references/scene.example.json
  • フッテージ編集サンプル: ~/ae-agent-skills/references/footage-edit.example.json
  • プリコンポ配置サンプル: ~/ae-agent-skills/references/comp-assembly.example.json
  • CLIリファレンス(日本語): ~/ae-agent-skills/references/cli.ja.md
  • CLIリファレンス(英語): ~/ae-agent-skills/references/cli.md

ファイル運用ルール(重要)

  • 横断再利用するエンジン、schema、referenceは ~/ae-agent-skills/ に置く
  • 案件固有の scene JSON、EDL、生成スクリプトは対象 .aep と同じ案件ディレクトリに置く
  • 案件ディレクトリ直下を散らかさない場合は _edl/ を推奨のサブディレクトリ名として使う。既存の案件構成へは強制しない
  • work/ / done/ へのコピー運用は行わない。履歴は案件側のGit、同期ストレージ、バックアップへ一本化する
  • 例:
    • ae-cli apply-scene --scene-file /path/to/project/_edl/main.scene.json --expect-project /path/to/project/main.aep --validate-only
    • ae-cli apply-scene --scene-file /path/to/project/_edl/main.scene.json --expect-project /path/to/project/main.aep

コマンド

bash
ae-cli health
ae-cli list-footage
ae-cli apply-scene --scene-file <scene.json> --expect-project <project.aep> --validate-only
ae-cli apply-scene --scene-file <scene.json> --expect-project <project.aep>
ae-cli apply-scene --scene-file <scene.json> --expect-project <project.aep> --mode replace-managed
ae-cli apply-scene --scene-file <scene.json> --expect-project <project.aep> --mode clear-all
ae-cli layers --comp-name <comp>
ae-cli properties --layer-name <layer> --comp-name <comp> --include-group <group> --include-group-children --include-keyframes [--filter <regex>] [--include-expression] [--include-disabled]
ae-cli properties --layer-name <layer> --comp-name <comp> --property-path <matchName.path>
ae-cli bounds --layer-name <layer> --comp-name <comp> --time <sec>
ae-cli expression-errors --comp-name <comp>
ae-cli snapshot --comp-name <comp> --time <sec> --out <absolute.png> [--scale <S>] # 0 < S <= 1

apply mode 指針

  • merge(既定): 既存維持 + 宣言分だけ upsert
  • replace-managed: aeSceneId:* の管理対象だけ差し替え
  • clear-all: comp を空にして完全再宣言

scene 設計ルール

  • layers[].id は必須推奨(upsert の安定キー)
  • layers[].parentId は scene id を参照
  • parentId を持つレイヤーの transform は親座標系で宣言し、初回適用と再適用で同じ値を使う
  • 推測でキーを作らず、必ず ~/ae-agent-skills/scene.schema.json を正として合わせる
  • アニメーション対象プロパティは animations で管理
  • animations[].keyframeMode は既定の replace を使い、宣言したキー集合へ完全に置換する
  • 既存の宣言外キーを意図的に残す場合だけ keyframeMode: merge を使う
  • キーを全削除する場合は keyframes: [] を宣言する
  • keyframes: [] 後の静止値も所有する場合は、同じpathの値を transform または propertyValues に宣言する。未宣言ならAEがキー削除後に保持する値を使う
  • 同じレイヤー内で同一 propertyPath を複数のanimationへ分割しない
  • 3Dベクトルには2D入力可([x,y] -> [x,y,0] 自動補完)
  • Repeater は layers[].repeaters[]
  • Effect 値は layers[].effects[].params[]
  • expression は layers[].expressions[]
  • Essential Graphics は layers[].essentialProperties[]
  • フッテージは assets[] に1度宣言し、type: footage のレイヤーから sourceId で参照する
  • 既存コンポは assets[] に type: comp と compId または一意な compName で宣言し、type: comp のレイヤーから sourceId で参照する
  • コンポレイヤーの本編上の配置は timing.startTime / inPoint / outPoint を使う
  • フッテージの assets[].path は絶対パス、scene JSONからの相対パス、または ${MEDIA_ROOT}/... のような環境変数付きパスを使える。CLIは適用前に絶対パスへ解決し、未定義変数はエラーにする
  • カット編集は timing.sourceIn / sourceOut / timelineIn を使う
  • sourceIn と sourceOut は必ず対で指定し、同じ sourceId を複数レイヤーから参照してよい
  • フッテージのカット指定と inPoint / outPoint / startTime は混在させない
  • 音声調整はフッテージレイヤーの audio で宣言する
  • audio.muted はミュート状態、audio.levelDb は左右共通のdB値、audio.fadeIn / fadeOut は秒数
  • audio.muted の既定はfalse、audio.levelDb の既定は0 dB、未指定のフェードは0秒として、再適用時に音声状態を作り直す
  • audio.fadeIn + audio.fadeOut はカット後のレイヤー尺以内にする
  • audio と汎用 animations / propertyValues から同じAudio Levelsを同時管理しない
  • テキストレイヤー全体のスタイルは textStyle で宣言する
  • textStyle.font は ae-cli list-fonts で取得したPostScript名を使う
  • fillColor / strokeColor は0〜1または0〜255のRGB配列を使う
  • textStyle.leading は手動行送りへ切り替わるため、autoLeading: true と併用しない
  • textStyle はレイヤー全体の基準スタイル。文字範囲は textStyleRanges[]、Range Selectorアニメーションは textAnimators[] を使う
  • textStyleRanges[] は0始まり・終端を含まない start / end と文字スタイルを宣言する。After Effects 24.3以降が必要
  • textStyleRanges は再適用時に基準スタイルへ戻せるよう、同じレイヤーの textStyle と必ず併用する
  • textAnimators[] は id、Position / Scale / Opacity / Rotation、selectorのStart / End / Offset / Amountとそのanimationを宣言する
  • selectorの詳細は units(1〜2)、basedOn(1〜4)、shape(1〜6)、smoothness(0〜100)、easeHigh / easeLow(-100〜100)で宣言する
  • AEが通常列挙しないselector propertyの往復確認には properties --property-path <matchName path> を使う
  • textAnimators を宣言したレイヤーでは aeSceneTextAnimator:* 管理アニメーターを置換する。人手作成の別名アニメーターは保持する
  • 整列・分布はトップレベルの layout[] に上から順に宣言し、layerIds はscene layer idを参照する
  • align は horizontal / vertical、distribute は axis と mode: gaps | centers を指定する
  • visual-center はvisual bounds中央へアンカーポイントを移し、見た目の位置を保持する。通常は align より前に置く
  • 基準は comp / action-safe / title-safe / selection。safe既定値は10% / 20%で、必要なら marginPercent で上書きする
  • layout対象は可視2D AVレイヤーに限る。3D、3D親子関係、Position expressionは使わない
  • 2D親子付きレイヤーはlayout対象にできる。親transformを含むvisual boundsから親座標系へ書き戻す
  • expression 内の effect 参照は表示名ではなく matchName を推奨(例: ADBE Slider Control-0001)
  • easeIn / easeOut は [speed, influence]。influenceは0.1〜100の百分率
  • EffectカラーはAEネイティブRGBA [r,g,b,a](0〜1)を使い、パラメータは事前にpropertiesで確認する

再適用セマンティクス

  • 既存compにも composition.width / height / duration / frameRate / pixelAspect を宣言値として適用する
  • --validate-only の compositionChanges でcomp設定の変更予定を確認する
  • animationは既定で既存キーを削除してから再構築するため、人手キーを残す場合は明示的に keyframeMode: merge を選ぶ
  • runtime error時は専用Undo groupを自動rollbackし、transaction markerの消失で成功を検証する。markerを確認できない場合は無関係な履歴を戻さない
  • rollback成功後もAEのproject dirty状態は保存時点へ戻らない場合がある。CLIは自動保存しない

フッテージ音声の例

json
{
  "id": "clip-01",
  "type": "footage",
  "name": "Interview 01",
  "sourceId": "interview",
  "timing": {
    "sourceIn": 12.5,
    "sourceOut": 18,
    "timelineIn": 0
  },
  "audio": {
    "muted": false,
    "levelDb": -6,
    "fadeIn": 0.5,
    "fadeOut": 0.75
  }
}

テキストスタイルの例

json
{
  "id": "title",
  "type": "text",
  "name": "Title",
  "text": "Hello Agent",
  "textStyle": {
    "font": "ArialMT",
    "fontSize": 96,
    "fillColor": [255, 240, 210],
    "strokeEnabled": true,
    "strokeColor": [18, 34, 56],
    "strokeWidth": 4,
    "tracking": 20,
    "leading": 110,
    "justification": "center"
  }
}

配置の例

json
"layout": [
  {
    "type": "align",
    "layerIds": ["title"],
    "reference": "title-safe",
    "horizontal": "center",
    "vertical": "top",
    "offset": [0, 24]
  },
  {
    "type": "distribute",
    "layerIds": ["card-a", "card-b", "card-c"],
    "reference": "action-safe",
    "axis": "horizontal",
    "mode": "gaps"
  }
]

最小テンプレート(このまま使える)

以下を対象案件の _edl/min.scene.json として保存して、そのまま validate/apply できる。

json
{
  "composition": {
    "name": "Skill_Minimal_Test",
    "width": 1280,
    "height": 720,
    "duration": 3,
    "frameRate": 30,
    "pixelAspect": 1,
    "createIfMissing": true,
    "setActive": true
  },
  "layers": [
    {
      "id": "t1",
      "type": "text",
      "name": "Hello",
      "text": "Skill only test",
      "textStyle": {
        "fontSize": 72,
        "fillColor": [255, 255, 255],
        "justification": "center"
      },
      "transform": {
        "position": [640, 360],
        "opacity": 100
      }
    }
  ],
  "layout": [
    {
      "type": "align",
      "layerIds": ["t1"],
      "reference": "title-safe",
      "horizontal": "center",
      "vertical": "center"
    }
  ]
}
bash
ae-cli apply-scene --scene-file /path/to/project/_edl/min.scene.json --expect-project /path/to/project/main.aep --validate-only
ae-cli apply-scene --scene-file /path/to/project/_edl/min.scene.json --expect-project /path/to/project/main.aep

propertyPath 運用ルール(汎用)

  • 目的: 実装コードを読まずに propertyPath を安定して決める。
  • propertyPath は基本的に matchName ベースで指定する(表示名依存を避ける)。
  • 適用前に ae-cli properties で対象レイヤーの実パスを確認し、出力に合わせて JSON へ転記する。
  • Shape 内部プロパティは次の順で辿る:
    • ADBE Root Vectors Group(Contents)
    • ADBE Vector Group
    • ADBE Vectors Group
    • 各要素(例: Shape Path / Fill / Stroke / Filter)
  • Effect パラメータ参照は layers[].effects[].params[] でも expression でも matchName 優先にする。
  • 迷ったら「推測で書く」のではなく、先に properties 出力を正として合わせる。

標準デバッグ手順(実装コードを読まない)

  1. ae-cli health の project.path が対象 .aep と一致することを確認
  2. ae-cli apply-scene --scene-file <scene.json> --expect-project <project.aep> --validate-only
  3. ae-cli apply-scene --scene-file <scene.json> --expect-project <project.aep>
  4. ae-cli expression-errors --comp-name <comp> で失敗箇所を確認
  5. 対象レイヤーに対して ae-cli properties --layer-name <layer> --comp-name <comp> --include-group <group> --include-group-children --include-keyframes を実行し、propertyPath とキーを確認
  6. 実寸が関係する場合は ae-cli bounds --layer-name <layer> --comp-name <comp> --time <sec> でcomp座標のvisual boundsを確認
  7. ae-cli snapshot --comp-name <comp> --time <sec> --out <absolute.png> [--scale 0.5] で見た目を確認
  8. scene JSON を修正して、同じ --expect-project を付けて再適用

トラブル時

  • validation 失敗:
    • JSON構造と型を確認
  • apply失敗:
    • Rollback: succeeded と表示されても、health / list-comps / list-footage / layers で対象が元へ戻ったことを確認する
    • rollback後にdirtyだけがtrueなら、自動保存せず内容を確認してから保存またはproject再読み込みを判断する
    • rollback失敗または未検証なら部分変更が残り得るため、対象を確認するまで再適用しない
  • expression が効かない:
    • ae-cli expression-errors
  • 意図しない新規レイヤー作成:
    • layers[].id 未指定/変更を確認
  • 旧レイヤーが残る:
    • apply-scene --mode replace-managed または --mode clear-all を使う
  • 既存シーンへ局所修正したい / 宣言型で表現しづらい:
    • aftereffects-cli へ切り替え

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Aftereffects Declarative?

Primary After Effects workflow using ae-cli apply-scene with declarative JSON (composition/assets/comp layers/footage cuts/audio/text styles/layout/layers/animations/expressions/parent/repeater/effect params). Use this by default for composition building and repeatable footage, audio, text, or visual-bounds layout editing.

Perché usare Aftereffects Declarative su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Aftereffects Declarative è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Aftereffects Declarative in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/yumehiko/ae-agent-skills/tree/main/skills/aftereffects-declarative. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Aftereffects Declarative?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Aftereffects Declarative?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Aftereffects Declarative: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Aftereffects Declarative è gratuita?

Sì. È pubblicata su GitHub da yumehiko con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇