Article View: adobe.after.effects.expressions
Article #522Re: at time run expression
From: Paul_Tuersley
Date: Fri, 25 Jun 2004 12:16
Date: Fri, 25 Jun 2004 12:16
14 lines
1561 bytes
1561 bytes
One problem with that last expression is that it will just switch immediately from the original value to the 'expressedValue'. This solution allows you to define a period over which it will transition between the two.
// user defined variables
framesBeforeStart = 50;
framesToTransition = 10;
expressedValue = value;
secondsBeforeStart = framesBeforeStart * thisComp.frameDuration;
secondsToTransition = (framesToTransition * thisComp.frameDuration) + secondsBeforeStart;
if (time < secondsBeforeStart) { [NL] value; [NL] } else { [NL] // this is where you put your expression [NL] expressedValue = [0,0]; [NL] } [NL] // move from original value to expressed value over the transition time [NL] linear(time, secondsBeforeStart, secondsToTransition, value, expressedValue);
NOTE: replace [NL]s with line returns
Paul T
Technical Details
Message-ID:
<3bb4c5ba.1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb4c5ba.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f450a,eb4ca398a922a1de X-Google-Attributes: gidf450a,public From: Paul_Tuersley@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.after.effects.expressions Subject: Re: at time run expression Message-ID: <3bb4c5ba.1@webx.la2eafNXanI> Date: Fri, 25 Jun 2004 05:16:33 -0700 References: <3bb4c5ba.-1@webx.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit