ae-scripting-expert

Write and debug Adobe After Effects ExtendScript/JSX scripts with ScriptUI panels and shape layer manipulation.

4|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/ki2pixel/After-Effects-Scripts-Plugins-Bundle --skill ae-scripting-expert-ki2pixel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ae-scripting-expert
Source: https://github.com/ki2pixel/After-Effects-Scripts-Plugins-Bundle/tree/main/.windsurf/skills/ae-scripting-expert
Command: npx skills add https://github.com/ki2pixel/After-Effects-Scripts-Plugins-Bundle --skill ae-scripting-expert-ki2pixel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing After Effects scripts requires navigating undocumented matchNames, ES3-era JavaScript constraints, fragile ScriptUI layouts, and confusing shape layer hierarchies, which leads to crashes and broken production scripts. ## Core Features & Use Cases - Production-Grade ExtendScript Patterns: Provides IIFE structure, undo groups, 1-based indexing, defensive error handling, and ES3 compatibility rules for reliable JSX scripts. - ScriptUI Panel Construction: Covers dockable panel detection, binary asset (icon) lifecycle management, tabbed layouts, and crash-prone property avoidance. - Shape Layer & Expression Engineering: Documents the ADBE Root Vectors Group hierarchy, shape-to-mask conversion, coordinate space conversion, and safe expression templating with string escaping. - Use Case: When asked to build a dockable AE panel that creates shape layers with pseudo-effects, the skill supplies the exact matchNames, settings persistence patterns, and binary preset bootstrapping code needed. ## Quick Start Ask the AI to write an After Effects JSX script that creates a dockable ScriptUI panel which adds a shape layer with a fill and stroke to the active composition.

Frequently Asked Questions about ae-scripting-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write an After Effects script with ExtendScript?

Wrap code in an IIFE to avoid global namespace pollution, use var instead of const/let for ES3 compatibility, and wrap operations in app.beginUndoGroup/app.endUndoGroup. Remember AE collections are 1-based, so the first layer is comp.layer(1).

How do I create a dockable ScriptUI panel in After Effects?

Check whether thisObj is an instance of Panel; if so use it directly, otherwise create a new Window of type palette. Build the UI, call win.layout.layout(true), and only call win.show() for palette windows, not docked panels.

Why does my After Effects script fail to write files?

File writes fail when the 'Allow Scripts to Write Files and Access Network' preference is disabled. Check it via app.preferences.getPrefAsLong on Pref_SCRIPTING_FILE_NETWORK_SECURITY and prompt the user to enable it before file operations.

How do I access shape layer paths with matchNames in ExtendScript?

Navigate from the layer's ADBE Root Vectors Group into an ADBE Vector Group, then its ADBE Vectors Group, and add an ADBE Vector Shape - Group whose ADBE Vector Shape property holds the Shape object with vertices and tangents.

Why are my shape layer vertices in the wrong position?

Shape vertices are defined in layer space, not composition space. Convert composition coordinates by subtracting the layer position, dividing by scale, and adding the anchor point before assigning vertices to the Shape object.

What are the limitations of app.settings for storing script preferences?

app.settings values are limited to roughly 1999 bytes and can throw on larger data. Store only booleans, numbers, and short strings, and call app.preferences.saveToDisk() after saveSetting to persist values.