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

Run after effects script without opening after effects?

Community Beginner ,
May 15, 2013 May 15, 2013

I have a project as a template. I want to run a script that injects itself with the project and replaces videos and text depending on the contents of my script file. So far so good, but can I run the script without opening after effects GUI? I use this now: afterfx -r c:\script_path\example_script.jsx. Is it considered best practice to have after effects GUI up and running if going to do many script changes on the template? Basically I am looking for the same functionality as aerender with no GUI.

TOPICS
Scripting
3.9K
Translate
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

correct answers 1 Correct answer

Contributor , May 15, 2013 May 15, 2013

-noui

that's it

Translate
LEGEND ,
May 15, 2013 May 15, 2013

To my knowledge scripts cannot change projects without the program actually running. Scripts merely call reflections of the internal commands which only are available when the program runs in full. Perhaps some of that has changed in AE CC, but I'm not aware of it.

Mylenium

Translate
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
Community Beginner ,
May 15, 2013 May 15, 2013

Ok, thanks for the answer.

Translate
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
Community Beginner ,
Mar 13, 2014 Mar 13, 2014

Can a script start AE and open a project with -noui?

Translate
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 ,
Mar 13, 2014 Mar 13, 2014

Yes.  There are some scripting limitations using -noui, but not many.

Translate
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
Contributor ,
May 15, 2013 May 15, 2013

-noui

that's it

Translate
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
New Here ,
Feb 06, 2018 Feb 06, 2018

Hey thanks for your anwser! But I have an issue in my AE. So this is my command line argument "AfterFX.exe -noui -r E:\work\MovieMaker.jsx",I am trying to run this in background without UI,The script is run,and the first process ,the after effects opens in background,after a few seconds it shuts down!. Nothing is done as per the script!.What's the isssue.This happens only when using -noui,else it is working fine.Thakyou for your any help.

Translate
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
Community Expert ,
Feb 06, 2018 Feb 06, 2018

Maybe your script does things that rely on the UI. If your script uses the app.executeCommand() function, for example, it won't work with -noui (noui = no user interface => no menu)

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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
New Here ,
Feb 06, 2018 Feb 06, 2018

Thanks for your reply.But I haven't used app.executeCommand() function, anywhere in the script.Thankyou.

Translate
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 ,
Feb 07, 2018 Feb 07, 2018
LATEST

It's likely an issue with your script.  You should create some kind of output logging from the script that writes to a file in order to understand where the script is breaking.  Once you have logging function in place, you can wrap your script code within a try { } catch (err) { } statement that can output the actual error message.

Translate
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