Return-Path: Received: from mail-ig0-f181.google.com ([209.85.213.181] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5352516 for AE-List@media-motion.tv; Sun, 19 Jan 2014 22:57:51 +0100 Received: by mail-ig0-f181.google.com with SMTP id j1so6377605iga.2 for ; Sun, 19 Jan 2014 14:01:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=GK/maVuhdklOdRXSfEakKvX9ySXappRODy/4Q1ehFSo=; b=F4d3Amuc/E7quXU70bHmvNfZXzPZLbcd3HhGNMoTj1nPlx8cjNm9jm9bMGMkOJuMy0 bd4H5uuv8h7+aP6z56qz2pgSUjy+hG9LLs+BGT+pgjVjX1gqVTzKPwLw5d2rw21kRNXq bTbwujR+VeyeE8x9RXxLXM3JjZYMBzX6nvehfIm1X0s/4t+uCXXIms//3JAuCC80nowS 2V6janTazLMGgsL97TZNZ6ZiKA9jfzISKzPk39nfGyBin2UTDWs2Q8ScqachYJgjKpG0 EBC6lMI5K5M2yH9mhc4R0434LanrRzdA8u1MPcdFcnRBEHC2MH4DkztAbE57+jlBFinV 2o0w== MIME-Version: 1.0 X-Received: by 10.50.29.114 with SMTP id j18mr9340224igh.24.1390168909976; Sun, 19 Jan 2014 14:01:49 -0800 (PST) Received: by 10.50.214.10 with HTTP; Sun, 19 Jan 2014 14:01:49 -0800 (PST) In-Reply-To: References: Date: Sun, 19 Jan 2014 16:01:49 -0600 Message-ID: Subject: Re: [AE] scripting for pseudo-effects From: Drew Gilmore To: After Effects Mail List Content-Type: multipart/alternative; boundary=047d7bd758e80e9b7904f059ec0d --047d7bd758e80e9b7904f059ec0d Content-Type: text/plain; charset=ISO-8859-1 Thanks yeah, now that I poke around it's clearly something else I'm doing wrong... I think I have it working. But now I'm curious. Why does this work: var vppath = curLayer.Effects.addProperty("VP-Path"); vppath.property("Azimuth").expression = ("50"); var vp = curLayer.Effects.addProperty("Virtual Projector"); vp.property("Azimuth").expression = ("50"); But this doesn't: var vppath = curLayer.Effects.addProperty("VP-Path"); var vp = curLayer.Effects.addProperty("Virtual Projector"); vp.property("Azimuth").expression = ("50"); vppath.property("Azimuth").expression = ("50"); (FWIW, VP-Path is the custom effect, Virtual Projector is a plugin effect.) Thanks, Drew On Sun, Jan 19, 2014 at 1:34 PM, David Torno wrote: > Should work the same way. Pseudo effects still have matchNames and > properties just like regular effects. What's your code look like, if you > don't mind sharing. > > David Torno > Technical Director > http://www.ghosttownmedia.com > O: 213.739.2290 > C: 818.391.6060 > -------------------- > http://aeioweyou.blogspot.com > > "The most useless day is that in which we do not laugh" > -Charles Field > > On Jan 19, 2014, at 9:48 AM, Drew Gilmore wrote: > > I'm trying to create a script that adds expressions to a custom > pseudo-effect. I'm using the same syntax that successfully adds an > expression to a regular effect, but ExtendScript Toolkit gives me errors. > Am I doing something wrong, or is this just not possible now? > > Drew > -- > Drew Gilmore > newtonscannon.com > > Just a guy made of dots and lines. > > --047d7bd758e80e9b7904f059ec0d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks yeah, now that I poke around it's clearly somet= hing else I'm doing wrong... I think I have it working. But now I'm= curious. Why does this work:

var vppath =3D curLay= er.Effects.addProperty("VP-Path");
vppath.property("Azimuth").expression =3D ("50");<= br>

var vp =3D curLayer.Effects.addProperty("= Virtual Projector");
vp.property("Azimuth").ex= pression =3D ("50");


But this doesn't:
var vppath =3D curLayer.Effects.addProperty("VP-Path= ");
var vp =3D curLayer.Effects.addProperty("Virtual Pr= ojector");

vp.property("Azimuth").expression =3D (= "50");
vppath.property("Azimuth&quo= t;).expression =3D ("50");

(FWIW, VP-Path is the custom effect, Virtual Projector is a plug= in effect.)

Thanks,
Drew


On Sun, Jan= 19, 2014 at 1:34 PM, David Torno <torno@sydefxink.com> wr= ote:
Should work the same = way. Pseudo effects still have matchNames and properties just like regular = effects. What's your code look like, if you don't mind sharing.

David Torno
Technical Director
O: 213.739.2290
--------------------

"The most useless day is that in which we do not laugh&q= uot;
-Charles Field<= /div>

On Jan 19, 2014, at 9:48 AM, Drew Gil= more <dotsan= dlines@gmail.com> wrote:

I'm trying to create a script that adds expressions to a custom pseudo-= effect. I'm using the same syntax that successfully adds an expression = to a regular effect, but ExtendScript Toolkit gives me errors. Am I doing s= omething wrong, or is this just not possible now?

Drew
--
Drew Gilmore
=

Just a guy made of dots and lines.

--047d7bd758e80e9b7904f059ec0d--