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

How to restart after effects using a script?

Community Beginner ,
Nov 06, 2024 Nov 06, 2024

Copy link to clipboard

Copied

I am making an after effects extension and want to create a button that will on click, allow user to save their project and then close and reopen after effects.

TOPICS
Scripting

Views

102

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
LEGEND ,
Nov 06, 2024 Nov 06, 2024

Copy link to clipboard

Copied

No. Scripts happen within the AE process, not independent from it. Once you terminate the program, scripts cease to function. Whatever you have in mind will require to be handled at the operating system level e.g. using Windows ' scheduler to relaunch the app. At best you can create a script button that calls these external processes, but terminating a program blindly can always have ill side effects, of course, like config files not being saved or getting damaged. The whole idea sounds weird, to be frank.

 

Mylenium 

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
Advocate ,
Nov 06, 2024 Nov 06, 2024

Copy link to clipboard

Copied

LATEST

app.quit() will save your project if needed and close After Effects,

but I don’t think you can execute any code after app.quit() to relaunch After Effects. 🤔

 

app.quit()

 

 

 

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