-
AfterFX command line and script argument
Greetings,
I’m currently trying to batch render a larger number of projects in AE CS3 (Windows XP), and the easiest thing for me would be to trigger rendering of a composition within an .aep from a batch script (.bat).
Since the output needs to be in NTSC and PAL, I have used Jeff Almasol’s excellent rd_CompSetter.jsx script to set the frame rates of all comps to PAL (all layers are based on stills).
Now, what I would like to do is write a batch script to start afterfx, open the project file (xyz.aep) which is the NTSC version, and then run the script (rd_CompSetter.jsx) to set the framerate to 25 before rendering the composition.
However, apparently there is no way to simply use “Afterfx xyz.aep -s rd_CompSetter.jsx”, because it is not possible to have two arguments here, only either the .aep file or the script file.
I thought that one way to work around that limitation is to use a script as an argument, something like
afterfx -s “app.open(new File(‘xyz.aep’));
There are two problems with this approach:
1) The file doesn’t seem to open. After effects starts properly, the info line shows that it is loading the project, and once it has reached 100% AE simply shuts down without an error.
2) I don’t know how to run a script from within a script. E.g. would ‘ afterfx -s “app.open(new File(‘xyz.aep’));
/rd_CompSetter.jsx” ‘ work? I cannot use aerender because I need to trigger the CompSetter script first, so that is not an option either.
Many many thanks if you know of any possible solutions.
Regards,
Tobias