Return-Path: Received: from qmta06.emeryville.ca.mail.comcast.net ([76.96.30.56] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5181779 for ae-list@media-motion.tv; Wed, 21 Aug 2013 04:20:03 +0200 Received: from omta21.emeryville.ca.mail.comcast.net ([76.96.30.88]) by qmta06.emeryville.ca.mail.comcast.net with comcast id FDzF1m0021u4NiLA6EYBXr; Wed, 21 Aug 2013 02:32:11 +0000 Received: from HPZ200 ([76.20.32.7]) by omta21.emeryville.ca.mail.comcast.net with comcast id FEYA1m00409DSM08hEYAbU; Wed, 21 Aug 2013 02:32:10 +0000 Message-ID: From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] Fading a light beyond a certain angle Date: Tue, 20 Aug 2013 19:32:11 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1377052331; bh=Cpb5IR3OoIaF6ndjjtcbGhkU3Y5mmC5NHScMhptUQ64=; h=Received:Received:Message-ID:From:To:Subject:Date:MIME-Version: Content-Type; b=IIE0ZgwADhkFszO7h+x8N0y5CXCUpK0mYKTOBwSQRK7p7F7ar+KnPart+v5Kw7Fie comYqpjIVnaYDDoZ96mZFwRSdUlS0bl2O+EuUltjg/z8kw3+5Aqw0oApI/D+pdRg6L VRFh25ecA6haILOG3imZM/l7dMZiszhXqZwAimXhXnsFXlNjZ/bqVtaMfuHl8D9cF/ WJxqf11ZDVthncSRP1LkFLA89IapvCcf0pE8u9Z/M3/4bsSa6h/TSXS2Wk6rV0ON+D y8Ziq70rPzYy04VvyaxcFnUhoSfEjuxMmgabv8mEwHNmll9SB8jBl+MhlqBSr73YPW BoEHIp00JIdCg== I probably have the ranges all wrong, but you should be able to adapt something like this: a = transform.yRotation%360; if (a < 180) ease(a,90,180,100,10) else ease(a,180,270,10,100) Dan -----Original Message----- From: Alex Czetwertynski Sent: Tuesday, August 20, 2013 5:58 PM To: After Effects Mail List Subject: [AE] Fading a light beyond a certain angle Hello I'm trying to figure out an expression to control the brightness of a rotating light. My light is turning on itself, on the Y axis. Everytime it passes 90 degrees, rotating away from the camera, I'd like to reduce its intensity, and then bring it back when it is starting to enter the quadrant in which it will face the camera. If the camera was just rotating once, I'd use a linear expression that mapped 180 to 270 degrees and faded the light in between those two values, but it is constantly looping… I thought I might be able to use Radians, but they, obviously, keep increasing with the degrees… Any suggestions? Thanks! Alex +---End of message---+ To unsubscribe send any message to