|
Perfect. Thanks Dan.
James
On Apr 12, 2012, at 11:51 AM, Dan Ebberts wrote:
> You should be able to make this do what you want:
>
> fadeTime = .2;
> minDur = 1.5;
> maxDur = 4;
>
> seedRandom(index,true);
> t0 = inPoint - random(maxDur);
> t1 = t0 + random(minDur,maxDur);
> while(t1 < time){
> t0 = t1;
> t1 = t0 + random(minDur,maxDur);
> }
> t = Math.max(0, time - t0);
> if (t < fadeTime)
> ease(t,0,fadeTime,0,100)
> else
> ease(t,fadeTime,2*fadeTime,100,0);
>
>
> Dan
>
> -----Original Message----- From: James Culbertson
> Sent: Thursday, April 12, 2012 11:03 AM
> To: After Effects Mail List
> Subject: [AE] expression - animating layer opacity on/off
>
> I'm doing some traditional 2D animation using layers created by a watercolorist.
>
> I need to animate opacity for a mouth open layer on and off within a constrained temporal randomness.
>
> Expression variables:
>
> Minimum and maximum duration between opacity transitions.
>
> Length of transition between 0 and 100% opacity.
>
> Thanks much,
>
> James
>
>
>
> +---End of message---+
> To unsubscribe send any message to <ae-list-off@media-motion.tv>
>
> +---End of message---+
> To unsubscribe send any message to <ae-list-off@media-motion.tv>
>
|
|