Return-Path: Received: from mail-ye0-f171.google.com ([209.85.213.171] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5181747 for ae-list@media-motion.tv; Wed, 21 Aug 2013 03:06:11 +0200 Received: by mail-ye0-f171.google.com with SMTP id m3so290941yen.2 for ; Tue, 20 Aug 2013 18:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=SxFu6Q6W98sQlsr+8hnDMkbqCldwgNs+3t3MR4RosEA=; b=vt1OEK3lD0JcEAV5zvxYCAQRTpKzIp3OcJY7ekHCciccVi6KxsyEL8qc/FMMlepTcJ g38WF5nInRzjjtNQcG/AQShdb67DSfXOtpwb/dmI3WGvmo+K7VU8YI2q798grqdbDwgc uHcQ9SkFS9vr8JmShpUaj40O0JqMNNb7PZQ0w9C3nl1hwb5pAsiFQx9D9HnrkFUCKwNO 9EoUxCUsgxI/20+Yhnvtg3xE7LS+XJrpg1BrPBHHVUAggsz5Gn1PZoIqmjMvGE5I+rc2 7pUATmlTX1l7EqIO0vpHiuza0gcKLPbqgP4J6falsxH+VN5xDbz+VrnyBRcmwLAh/Wd8 rMxw== X-Received: by 10.236.156.5 with SMTP id l5mr3433239yhk.5.1377047899925; Tue, 20 Aug 2013 18:18:19 -0700 (PDT) Return-Path: Received: from [192.168.1.137] (n221s141.ntc.harrisonburg.shentel.net. [204.111.221.141]) by mx.google.com with ESMTPSA id v22sm5191575yhn.12.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Aug 2013 18:18:18 -0700 (PDT) Message-ID: <52141552.3090009@gmail.com> Date: Tue, 20 Aug 2013 21:18:10 -0400 From: Bruce Wainer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: After Effects Mail List Subject: Re: [AE] Fading a light beyond a certain angle References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit This should work (may not be 100% correct syntax): x=value; //current angle value, in 0-infinity y=x/360; //how many rotations; equal to radians/2 z=Math.floor(y); //number of completed rotations x-z*360 //current angle in 0-360 Bruce On Tuesday, August 20, 2013 8:58:45 PM, Alex Czetwertynski wrote: > 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