SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
 FORUMS TUTORIALS FEATURES VIDEOS PODCASTS EVENTS SERVICES NEWSLETTER NEWS BLOGS
 ADOBE AFTER EFFECTS: Home Forum Basics Expressions Tutorials Podcasts AE Techniques Creative Cloud Debate FAQ

# Re: Help!, with expression (layers)?

COW Forums : Adobe After Effects

Respond to this post   •   Return to posts index   •   Read entire thread

 Re: Help!, with expression (layers)?by Colin Braley 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 Index Read Thread

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

© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]