Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesCreative Cloud DebateFAQ

Re: Help!, with expression (layers)?

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Colin BraleyRe: Help!, with expression (layers)?
by on Dec 16, 2005 at 3:11:31 am

Here is an expression for opacity that will do the flickering and the fading. Don't give me any credit though, I copied and pasted some code used in an example on Dan Ebbert's motionscript.com and added about 3 lines to it. :)


//--Begin Expression
segMin = .5; //minimum segment duration
segMax = 1.5; //maximum segment duration
flickerDurMin = .5;
flickerDurMax = .8;
timeToFadeIn = thisComp.duration - 1;
//--
if(time < timeToFadeIn)
{

end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(segMin,segMax);
}
flickerDur = random(flickerDurMin,flickerDurMax);
if (time > end - flickerDur){
seedRandom(1,false);
random(100);
}else{
100
}


}else{//Don't use Dan's code if time >= timeToFadeIn
ease(time, timeToFadeIn, thisComp.duration, 0, 100)
}

//--End Expression




Colin


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:
  • Help!, with expression (layers)? by jim Branstetter on Dec 16, 2005 at 2:46:11 am
    • Re: Help!, with expression (layers)? by Colin Braley on Dec 16, 2005 at 3:11:31 am




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]