Page 1 of 1

run script command prompt

Posted: June 13th, 2006, 6:39 am
by mads
two questions

-Is it possile to run a Script on a open instance of After Effects with the windows command prompt?

-Is it possible to make after effects automatically run scripyt when you double click a script file?


-Mads Juul

Posted: June 15th, 2006, 2:20 am
by mads
ok I found a way

af i write this in command line og in the target og the short cut

i run a script called'a.jsc' located in my root

"C:\Program Files\Adobe\After Effects 6.5\Support Files\AfterFX.exe" -s var a = new File("C:\a.jsx") ; a.open();eval(a.read())

-mads

Posted: October 3rd, 2006, 6:32 am
by lloydalvarez
Hey mads,

this doens't seem to be working for me.. -s is the flag to indicate the start frame of the composition not to launch a script so i am a bit confused.

i am very interested in launching a script with a command line render, however, to be able to create a render done report.. so any help on this will be great.

-lloyd

Posted: October 3rd, 2006, 7:56 am
by Dan Ebberts
Lloyd,

I think mads was talking about using a command line to force AE to run a script. The -s flag means the text of the script is in the command line, -r would be used to pass the path to a script file.

The command line renderer is a different deal, and I do't know of any way to force it to run a script.

Dan