Return-Path: Received: from mail-wi0-f173.google.com ([209.85.212.173] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5042033 for AE-List@media-motion.tv; Wed, 17 Apr 2013 22:39:59 +0200 Received: by mail-wi0-f173.google.com with SMTP id c10so878212wiw.6 for ; Wed, 17 Apr 2013 13:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=rW0EB11RHLz8luw5v+O47GK+/2FDTTJ40tcqJ/7Qn3A=; b=ZZvCM747LlaDSZVpzP3qeuP9afWWr3lVjBoSHSL9Sy8s1N/4v2fG8hFzCG7YFEU6NG SYftClGwRueBTaWQzplJdJyTzmPwGYeTd0pORjXrvwuGgvPalwd2uL5X4GkPYuUDf+lW jr06oCzlBKZDtR67X249SaUb/3xJAc031F0Q67VfaU8c8CipWptj8M9mJQmvF/IeAfxL P/ulq62yUAocVNUC1VGDptljoIGCkQ+sKczdhJoxYEtXe5lbxyUr7bfj34Go1dcft2i7 Q1Mm1QR+hWJzNdwX6ymd+fUfbuhb3sxk5DSmifEeiwixwspanN27vs3RMOojT4lGbYPH JuVg== MIME-Version: 1.0 X-Received: by 10.194.110.69 with SMTP id hy5mr14173698wjb.1.1366231687515; Wed, 17 Apr 2013 13:48:07 -0700 (PDT) Received: by 10.217.86.201 with HTTP; Wed, 17 Apr 2013 13:48:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Apr 2013 21:48:07 +0100 Message-ID: Subject: Re: [AE] exression: linking color to rotation? From: D To: After Effects Mail List Content-Type: multipart/alternative; boundary=089e010d867a6a56de04da949a8a --089e010d867a6a56de04da949a8a Content-Type: text/plain; charset=ISO-8859-1 Nice. On Wednesday, April 17, 2013, James Culbertson wrote: > That is correct... when applied to an animatable color parameter. > > James > > > On Apr 17, 2013, at 2:00 AM, D wrote: > > So this expression changes a layer's colour based on its rotation angle? > > On Wednesday, April 17, 2013, James Culbertson wrote: > >> That works. >> >> Thanks much, >> >> James >> >> >> On Apr 16, 2013, at 10:00 PM, Phil Spitler wrote: >> >> I think you need an == instead if = >> >> if (r == 0) color2/255 else color1/255 >> >> Phil >> >> >> On Tue, Apr 16, 2013 at 9:52 PM, James Culbertson wrote: >> >>> I am trying to modify this expression, which works: >>> >>> color1 = [204,0,0,255]; // shade of red + alpha >>> color2 = [0,204,0,255]; // shade of green + alpha >>> r = thisComp.layer("shape").transform.rotation; >>> if (r > 0) color2/255 else color1/255 >>> >>> To this expression, which does not (only the = sign in the last line is >>> different): >>> >>> color1 = [204,0,0,255]; // shade of red + alpha >>> color2 = [0,204,0,255]; // shade of green + alpha >>> r = thisComp.layer("shape").transform.rotation; >>> if (r = 0) color2/255 else color1/255 >>> >>> Any suggestions on how to proceed? >>> >>> Thanks, >>> >>> James >>> >>> >>> +---End of message---+ >>> To unsubscribe send any message to >>> >> >> >> > --089e010d867a6a56de04da949a8a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nice.=A0

On Wednesday, April 17, 2013, James Culbertson= wrote:
That is correct... when applied to an animatable color parameter.

James


On Apr 17, 2013, at= 2:00 AM, D wrote:

So this expression ch= anges a layer's colour based on its rotation angle?=A0

On Wednesday, April 17, 2013, James Culbertson wrote:
That works.

Thanks much,

James


On Apr 16, 2013, at 10:00 PM, Phil Spitler wrote:

I think you need an =3D=3D instead if =3D

if (r =3D=3D= 0) color2/255 else color1/255

=
Phil


On Tue, Apr 16, 2013 at 9:52 PM, James Culbertson <= albion@speakeasy.net> wrote: