Mailing List AE-List@media-motion.tv ? Message #49094
From: Byron Nash <byronnash@gmail.com>
Subject: Re: [AE] executing an AE script from Python 2.7
Date: Thu, 16 May 2013 15:26:21 -0400
To: After Effects Mail List <AE-List@media-motion.tv>
Speaking of Python, when will Adobe support that for scripting? 


On Thu, May 16, 2013 at 1:57 PM, Louai Abu-Osba <me@louai.org> wrote:
Solved, turned out I needed to escape the slashes in the filepath.

On Wed, May 15, 2013 at 12:33 PM, Louai Abu-Osba <me@louai.org> wrote:
> I'm trying to execute an AE script from Python and it doesn't appear
> that the script argument is passing correctly. I'm using Windows 7
> with Python 2.7.
>
> If I use cmd.exe or powershell and try "afterfx -r
> D:\pipeline\tests\tactic_ae\hello.jsx" I get my "hello world" alert in
> the AE UI.
>
> However, if I try executing in Python:
> subprocess.call(["afterfx","-r","D:\pipeline\tests\tactic_ae\hello.jsx"])
> The AE UI takes focus but no alert appears. The strange part is if I
> try to do something invalid like remove the -r flag:
> subprocess.call(["afterfx","D:\pipeline\tests\tactic_ae\hello.jsx"])
> I get an AE error: After Error Can't import file "hello.jsx":
> unsupported filetype or extension
>
> Anyone know why the alert won't display when run from Python? Thanks!
>
> -louai
>
> +---End of message---+
> To unsubscribe send any message to <ae-list-off@media-motion.tv>

+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>

 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster