Run JSX file
ae_run_script_fileRuns an existing .jsx/.jsxbin script file from disk inside After Effects, passing AEMCP_ARGS and returning the script's last expression plus an undoable change report.
Instructions
Run an existing .jsx/.jsxbin script file from disk inside After Effects (like File > Scripts > Run Script File), e.g. one found with ae_list_scripts. args is exposed to the script as the global AEMCP_ARGS. Returns the value of the script's last expression and a change report; the run is one undo step. A missing file is an error; refused in Read-only mode. For code you write yourself use ae_run_script.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | JSON object exposed to the script as the global AEMCP_ARGS (default {}). | |
| path | Yes | Absolute path to the .jsx / .jsxbin file. | |
| timeoutSeconds | No | Max seconds to wait for the script, 1-3600 (default 300). |