Mailing List AE-List@media-motion.tv ? Message #50544
From: Dan Ebberts <debberts@comcast.net>
Subject: Re: [AE] Fading a light beyond a certain angle
Date: Tue, 20 Aug 2013 19:32:11 -0700
To: After Effects Mail List <AE-List@media-motion.tv>
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 <ae-list-off@media-motion.tv>
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster