Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects PRO TIP on prompting an LLM for Scripts/Expressions

  • PRO TIP on prompting an LLM for Scripts/Expressions

    Posted by Roland R. kahlenberg on August 24, 2026 at 2:18 am

    PRO TIP for After Effects users using AI Assisted Coding tools – here’s a short RAG (Retrieval Augmented Generation) context you can add to your First Prompt, System Prompt, or *.md file so your AI Coding Assistant writes compatible code.

    The scripting language in After Effects uses Adobe’s ExtendScript, which is based on JavaScript
    <strong style=”font-family: inherit; font-size: inherit;”>ECMAScript 3 (ECMA-262 3rd Edition, 1999). Newer JavaScript features are <strong style=”font-family: inherit; font-size: inherit;”>not supported and will cause runtime errors in scripts.

    Add this to your prompts/*.md files when writing a script –
    ————————————–

    Must work across all language versions of After Effects.

    Use Scripting and Expression (when deploying Expressions) matchNames instead of localized display names wherever possible — this is critical for cross-language compatibility.

    Must work on both macOS and Windows.

    Targets After Effects version [** insert version number **] and newer.

    ————————————–

    After Effects expressions use a modern JavaScript engine (ECMAScript 2018 — V8 on Windows, JavaScriptCore on macOS) when the project is set to the JavaScript engine. A Legacy ExtendScript (ECMAScript 3) Expression Engine option still exists for legacy support.

    When writing new Expressions, it is recommended to write code for the newer Javascript Expression engine for added functionality and improved performance.

    For Expressions (JavaScript engine)
    ————————————–

    Expressions must work across all language versions of After Effects. Use Expression matchNames instead of localized display names wherever possible — this is critical for cross-language compatibility.

    Target the [** choose one ** Javscript Expression Engine / Legacy ExtendScript Expression Engine].

    ————————————–

    HTH

    Roland R. kahlenberg replied 21 hours, 1 minute ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy