Mailing List AE-List@media-motion.tv ? Message #48539
From: James Culbertson <albion@speakeasy.net>
Subject: exression: linking color to rotation?
Date: Tue, 16 Apr 2013 21:52:30 -0700
To: After Effects Mail List <AE-List@media-motion.tv>
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

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