Mailing List AE-List@media-motion.tv ? Message #48540
From: Phil Spitler <phil@bonfirelabs.com>
Subject: Re: [AE] exression: linking color to rotation?
Date: Tue, 16 Apr 2013 22:00:01 -0700
To: After Effects Mail List <AE-List@media-motion.tv>
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 <albion@speakeasy.net> 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 <ae-list-off@media-motion.tv>

 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster