Return-Path: Received: from mail-pz0-f41.google.com ([209.85.210.41] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4620903 for AE-List@media-motion.tv; Thu, 09 Feb 2012 05:45:15 +0100 Received: by dadv6 with SMTP id v6so1101034dad.28 for ; Wed, 08 Feb 2012 20:51:17 -0800 (PST) Received: by 10.68.226.98 with SMTP id rr2mr1657491pbc.115.1328763077368; Wed, 08 Feb 2012 20:51:17 -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 x4sm3357753pbx.16.2012.02.08.20.51.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Feb 2012 20:51:16 -0800 (PST) From: Phil Spitler Content-Type: multipart/alternative; boundary=Apple-Mail-229-416038939 Subject: Script question Date: Wed, 8 Feb 2012 20:51:13 -0800 Message-Id: <88D8451C-A5C5-4A07-B9CC-DA67D968F3AE@bonfirelabs.com> To: After Effects Mail List Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-Gm-Message-State: ALoCoQlqNtBWGdUsrcaz/tb1FhXkKdAIgC2Tffm0eA4CQQi65mbfzCumNn86BwGqr02Qo0+oLdIP --Apple-Mail-229-416038939 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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); }=20 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-229-416038939 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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-229-416038939--