Return-Path: Received: from mail-la0-f52.google.com ([209.85.215.52] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5073459 for AE-List@media-motion.tv; Thu, 16 May 2013 21:17:37 +0200 Received: by mail-la0-f52.google.com with SMTP id fo13so3399490lab.39 for ; Thu, 16 May 2013 12:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=0g8hZPBc60bnSR3tPbaDBISO2vajYviBQkMQ6VH3HWE=; b=LqxPGVHo6TiM7rCjD+h73r751GrneO45DIKPBNwhagZVtQIlqIJcRZDKzPIEPPZKQ8 AJR4sSe0pskgkfdYVYmoHa4g6YoJQfmHcyJy4B6CFKJZld6YwExl/a/wDC9UrntWIGvX 4p60CkxUjHwHR8Is8XXfHElhOdvcMyVyFiTRCetGmsuxpCmqUV+If/EeOI4MBI6BdUYC Rucmd5PbMcww/1kT4psVd1qR1sEDYTo/6G6RUXYLDAXAPdalHk9eEvYjalUbE93LJ4IN q3k2+1QrxEcFPyzeAuX9GFN/ec/Jl3WUfEMAgd74XQA9mgZDn3qoHnNgMD9TtEOsRyXC F/Kg== X-Received: by 10.112.158.164 with SMTP id wv4mr6327719lbb.63.1368732401259; Thu, 16 May 2013 12:26:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.125.230 with HTTP; Thu, 16 May 2013 12:26:21 -0700 (PDT) In-Reply-To: References: From: Byron Nash Date: Thu, 16 May 2013 15:26:21 -0400 Message-ID: Subject: Re: [AE] executing an AE script from Python 2.7 To: After Effects Mail List Content-Type: multipart/alternative; boundary=001a11c3896691db0004dcdad8bc --001a11c3896691db0004dcdad8bc Content-Type: text/plain; charset=ISO-8859-1 Speaking of Python, when will Adobe support that for scripting? On Thu, May 16, 2013 at 1:57 PM, Louai Abu-Osba 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 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 > > +---End of message---+ > To unsubscribe send any message to > --001a11c3896691db0004dcdad8bc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Speaking of Python, when will Adobe support that for scrip= ting?=A0


On Thu, May 16, 2013 at 1:57 PM, Louai Abu-Osba <me@louai.org> w= rote:
Solved, turned out I needed to escape the sl= ashes 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&q= uot;:
> unsupported filetype or extension
>
> Anyone know why the alert won't display when run from Python? Than= ks!
>
> -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>

--001a11c3896691db0004dcdad8bc--