Skip to main content
ahmed_anas
Participant
October 23, 2015
Answered

After effects is 'disabled' when running AfterFX.exe -s argument

  • October 23, 2015
  • 1 reply
  • 621 views

Hey guys, was hoping you could help me out.

Writing my first script with after effects to automate some of my process. I want the script to run at startup with some arguments passed via command line so I use the -s command.

Everything is done except for one problem, when I run AfterFX.exe with the -s argument, for example if i do this:

        "PATH_TO_ADOBE_CS6\Support Files\AfterFX.exe" -s "alert('foo')"

It opens after effects and i do get that 'foo' dialog but for some reason after effects is 'disabled'. What I mean is I can't do anything, not open any project, nothing. all options are grayed out.

Note that if after effects is already running, and I run the command, it doesn't 'disable' after effects and I get the desired result.

I am using windows and after effects CS6.

note: obviously I intend to do something more complex than alert('foo') which was used a minimalist example to show my issue.

This topic has been closed for replies.
Correct answer ahmed_anas

Figured it out. For those who find this later, all I needed to do was add "app.exitAfterLaunchAndEval = false;"

1 reply

ahmed_anas
ahmed_anasAuthorCorrect answer
Participant
October 23, 2015

Figured it out. For those who find this later, all I needed to do was add "app.exitAfterLaunchAndEval = false;"