Return-Path: Received: from mail-qy0-f169.google.com ([209.85.216.169] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4620938 for AE-List@media-motion.tv; Thu, 09 Feb 2012 08:02:49 +0100 Received: by qcsd16 with SMTP id d16so787175qcs.28 for ; Wed, 08 Feb 2012 23:08:52 -0800 (PST) Received: by 10.229.102.155 with SMTP id g27mr419538qco.103.1328771332392; Wed, 08 Feb 2012 23:08:52 -0800 (PST) Return-Path: Received: from [192.168.1.44] (c-50-131-56-72.hsd1.ca.comcast.net. [50.131.56.72]) by mx.google.com with ESMTPS id ef1sm4027754qab.19.2012.02.08.23.08.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Feb 2012 23:08:51 -0800 (PST) From: Phil Spitler Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/alternative; boundary=Apple-Mail-234-424294183 Subject: Re: [AE] Script question Date: Wed, 8 Feb 2012 23:08:48 -0800 In-Reply-To: To: "After Effects Mail List" References: Message-Id: X-Mailer: Apple Mail (2.1082) X-Gm-Message-State: ALoCoQm0FKp5xdXoGnG4ZjP8DV1iK0lmfT0OF7PaByzTi8l+Tpnlcl6tpz9H4C3h6AgDURCCbE+8 --Apple-Mail-234-424294183 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dan nailed it once again. myEffect.moveTo(1); Thanks Dan. Phil Spitler | Associate Creative Director | Bonfire | t : = 415.394.8200 | c : 415.571.3139 | Bonfirelabs.com On Feb 8, 2012, at 8:51 PM, Phil Spitler wrote: > I want to add an effect to some layers in an AE script but instead of = it adding it to the bottom of the property group, I want to insert it at = a set location. >=20 > Here is my current code snippet. >=20 >=20 > if (thisEffectName =3D=3D fxOld) { // found an old effect > thisEffect.remove(); > currentEffects.addProperty(fxNew); > }=20 >=20 > Like I said, it works great other than it adds the new effect to the = bottom of the group. >=20 > Any ideas? >=20 > Thanks. >=20 > Phil >=20 >=20 >=20 >=20 >=20 >=20 >=20 > Phil Spitler | Associate Creative Director | Bonfire | t : = 415.394.8200 | c : 415.571.3139 | Bonfirelabs.com >=20 >=20 >=20 >=20 >=20 >=20 --Apple-Mail-234-424294183 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Dan = nailed it once again.

myEffect.moveTo(1);

Thanks = Dan.


Phil Spitler |   = Associate Creative = Director  |  Bonfire  |  t : = 415.394.8200  |  c : = 415.571.3139  |  Bonfirelabs.com
=




On Feb 8, 2012, at 8:51 PM, Phil Spitler wrote:

I want to add an effect to some = layers in an AE script but instead of it adding it to the bottom of the = property group, I want to insert it at a set = location.

Here is my current code = snippet.


if (thisEffectName = =3D=3D fxOld) { // found an old effect
     =                     =           = thisEffect.remove();
           =                     =     currentEffects.addProperty(fxNew);
   =                     =             = } 

Like I said, it works great other than = it adds the new effect to the bottom of the = group.

Any = ideas?

Thanks.

Phil







Phil Spitler |   = Associate Creative = Director  |  Bonfire  |  t : = 415.394.8200  |  c : = 415.571.3139  |  Bonfirelabs.com
=





= --Apple-Mail-234-424294183--