• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

how to open an AE project file and run a script using CMD?

New Here ,
Jan 10, 2025 Jan 10, 2025

Copy link to clipboard

Copied

Hello everyone, I encountered a problem. I want to use CMD to open my AE project file and run a script. So I wrote the following code:

 

“C:\Program Files\Adobe\Adobe After Effects 2025\Support Files\afterFX.exe” -project “C:\Users\kyle\Desktop\export.aep” -r “ C:\Users\kyle\Documents\20250110_02.jsx”

 

 

 

 But after running it, I found that it only opens the AE main interface, but does not open the project file, nor does it run the script. When I delete the part of the code that runs the script, the project file opens successfully. Is there a way to use CMD to open the project file and immediately run the script? I would appreciate any responses. Thank you.

TOPICS
Scripting

Views

45

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 10, 2025 Jan 10, 2025

Copy link to clipboard

Copied

LATEST

Hi!  What does 20250110_02.jsx actually do?  It sounds like the command is working, but that the script isn't working.  Do you have any log information writing to a file in the .jsx file?  If you don't have it already, you may want to insert `alert("My Script is Running")` somewhere in the code so you can verify it is actually being run?

 

If you don't want the After Effects GUI to come up, you can use the -noui flag in the command.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines