The Duduf After Effects ExtendScript Framework.
by RxLaboratory and Duduf.
  • 1.0.0
  • Nicolas Dufresne and contributors
  • GPL-3.0
    DuAEF is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    DuAEF is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with DuAEF. If not, see

View Source DuAEF.jsxinc, line 18863


// Encapsulate everything to avoid global variables!
// The parameter is either undefined (stand alone script) or the panel containing the ui (ScriptUI)
     // Include the framework
     #include "DuAEF.jsxinc";
     // Running the init() method of DuAEF is required to setup everything properly.
     DuAEF.init( "YourScriptName", "1.0.0", "YourCompanyName" );
     // These info can be used by the framework to improve UX, but they're optional
     DuESF.chatURL = ''; // A link to a live-chat server like Discord or Slack...
     DuESF.bugReportURL = ''; // A link to a bug report form
     DuESF.featureRequestURL = ''; // A link to a feature request form
     DuESF.aboutURL = ''; // A link to the webpage about your script
     DuESF.docURL = ''; // A link to the documentation of the script
     DuESF.scriptAbout = 'Duduf Groups: group After Effects layers!'; // A short string describing your script
     DuESF.companyURL = ''; // A link to your company's website
     DuESF.rxVersionURL = '' // A link to an RxVersion server to check for updates
     // Build your UI here, declare your methods, etc.

     // This will be our main panel
     var ui = DuScriptUI.scriptPanel( thisObj, true, true, new File($.fileName) );
     ui.addCommonSettings(); // Automatically adds the language settings, location of the settings file, etc

     DuScriptUI.staticText( ui.settingsGroup, "Hello world of settings!" ); // Adds a static text to the settings panel
     DuScriptUI.staticText( ui.mainGroup, "Hello worlds!" ); // Adds a static text to the main panel
     // When you're ready to display everything

     // Note that if you don't have a UI or if you don't use DuScriptUI to show it,
     // you HAVE TO run this method before running any other function:
     // DuAEF.enterRunTime();



# static readonly file

The current DuAEF File

View Source DuAEF.jsxinc, line 18877


# static readonly version

The Current DuAEF Version

View Source DuAEF.jsxinc, line 18870


# static enterRunTime()

This method has to be called once at the end of the script, when everything is ready and the main UI visible (after any prompt or setup during startup).

View Source DuAEF.jsxinc, line 18903

# static init(scriptNameopt, scriptVersionopt)

This method has to be called once at the very beginning of the script, just after the inclusion of DuAEF #include DuAEF.jsxinc
Name Type Attributes Default Description
scriptName string <optional>
"DuAEF" The name of your script, as it has to be displayed in the UI and the filesystem
scriptVersion string <optional>
"0.0.0" The version of your script, in the form "XX.XX.XX-Comment", for example "1.0.12-Beta". The "-Comment" part is optional.

View Source DuAEF.jsxinc, line 18895