Return-Path: Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.219] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5424427 for AE-List@media-motion.tv; Fri, 04 Apr 2014 11:33:49 +0200 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1396604118; l=9329; s=domk; d=mamoworld.com; h=In-Reply-To:To:References:Date:Subject:Mime-Version:Content-Type: From:X-RZG-CLASS-ID:X-RZG-AUTH; bh=ULySX8p469sHeDm4nyEWeZXsO/M=; b=EbV1lnftWXRvqqvvxASuav0DRtXpY0bNDM/1zMLSCio0nuEC6ZEpqbf78mXXy9IJbWG D7Oa1QdYw3zrPf7LjPCEK1dCpvjdq7cmpmZ+hh3TY3A/4XmSnbsb3YNM5uAIUWAmLBGtB nN5Q9KM7sGYpbYCs64pDulAxyMO0+7rf47w= X-RZG-AUTH: :JWICemClevKDgu8HjcNJMjRl593UXLPRxATGwvl0czvlKPnWLqh5o2ukeDIMXw== X-RZG-CLASS-ID: mo00 Received: from [192.168.14.35] (p5B3EDE3E.dip0.t-ipconnect.de [91.62.222.62]) by smtp.strato.de (RZmta 32.31 DYNA|AUTH) with ESMTPSA id z054b4q349ZI1KT (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Fri, 4 Apr 2014 11:35:18 +0200 (CEST) From: =?iso-8859-1?Q?Mathias_M=F6hl?= Content-Type: multipart/alternative; boundary="Apple-Mail=_2C59D137-D0B5-41BD-8F16-D3F0900D99B4" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: [AE] Layer names and Expressions Date: Fri, 4 Apr 2014 11:33:49 +0200 References: To: After List In-Reply-To: X-Mailer: Apple Mail (2.1874) --Apple-Mail=_2C59D137-D0B5-41BD-8F16-D3F0900D99B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Updating expressions in a way that always works is impossible I guess. This is because expressions can contain arbitrary code which makes it = possible for them to do things that =93hide=94 the layer name in the = code. You can, for example, place some code in a string and then = executing the code using an eval(). I guess After Effects does its best = to identify all occurrences of layer names and tries to update them, but = depending on how the layer name is used in the expression, it won=92t be = able to find and replace it. Cheers, Mathias On 04 Apr 2014, at 00:14, Phil Spitler wrote: > Could somebody explain why some expressions update themselves when I = rename a layer that is referenced in the expression and some don't. >=20 > Also, does anybody know of a script that will rename layers and also = update broken expressions. >=20 > Cheers. >=20 > Phil >=20 >=20 > Phil Spitler | Creative Technologist | Bonfire Labs | t : = 415.394.8200 m : 415.571.3139 >=20 > Website | Facebook | LinkedIn mamoworld.com simplify your cgi Dr. Mathias M=F6hl Marlow 52 , 18551 Sagard, Germany Phone +49 (0)38302 - 88 75 61 info@mamoworld.com --Apple-Mail=_2C59D137-D0B5-41BD-8F16-D3F0900D99B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Updating expressions in a way that always works is = impossible I guess.
This is because expressions can contain = arbitrary code which makes it possible for them to do things that =93hide=94= the layer name in the code. You can, for example, place some code in a = string and then executing the code using an eval(). I guess After = Effects does its best to identify all occurrences of layer names and = tries to update them, but depending on how the layer name is used in the = expression, it won=92t be able to find and replace = it.

Cheers,
Mathias

=
On 04 Apr 2014, at 00:14, Phil Spitler <phil@bonfirelabs.com> = wrote:

Could somebody explain why some expressions update = themselves when I rename a layer that is referenced in the expression = and some don't.

Also, does anybody know of a script = that will rename layers and also update broken = expressions.

Cheers.

Phi= l


Phil Spitler  |  Creative = Technologist   |  Bonfire Labs  = |  t : 415.394.8200  m : 415.571.3139

Website | Facebook | LinkedIn

=

mamoworld.com
simplify your = cgi

Dr. Mathias M=F6hl
Marlow 52 , 18551 = Sagard, Germany
Phone +49 (0)38302 - 88 75 61
info@mamoworld.com

=

= --Apple-Mail=_2C59D137-D0B5-41BD-8F16-D3F0900D99B4--