Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Hey Dan? Still need some expression help, if you would…

  • Hey Dan? Still need some expression help, if you would…

    Posted by Shirak Agresta on March 20, 2006 at 11:47 pm

    You never replied to my last post and I could really use the help! Here are the contents:

    https://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=2&postid=873885&threadid=873801&pview=t

    Name: Dan Ebberts
    Date: Mar 17, 2006 at 12:35:16 am
    Subject: Re: Expression duration help, please!

    How would that work? There’s only a fixed time to get from the next-to-last point to the last point. If you slow that down you’ll overshoot your target time. Is that OK?

    Dan

    Respond to this post Return to posts index

    Name: shirak23
    Date: Mar 17, 2006 at 12:44:31 am
    Subject: Re: Expression duration help, please!

    I guess that depending on how much it would go past the target time, I would just then compensate for that in where I placed that layer in my animation. For this particular project I’m working on, no it wouldn’t matter to much, I’d just work around it. It’s just that it’s such an abrupt stop. Is there a way to write an expression that says (for example):

    when time reaches, say, 4 seconds (00;04;00) ease to a stop. Then I could change that beginning ease point to wherever I needed it on the timeline, figuring that it would overshoot and then plan for it in where I place my layer in the comp.

    No? Like I said, I’m brand new to expressions, so I don’t know. I like the idea of the expression slider, but I don’t know if it could incorporate your random expression that I’m currently using and control it like that…

    Either way, thanks!

    Julius Caesar and the Roman Empire couldn’t conquer the blue sky.

    Shirak Agresta replied 20 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 21, 2006 at 4:39 am

    Play around with this:

    myEndTime = 4;
    decay = 5;

    segMin = 1.0; //minimum segment duration
    segMax = 3.5; //maximum segment duration
    minVal = [0.1*thisComp.width, 0.1*thisComp.height];
    maxVal = [0.9*thisComp.width, 0.9*thisComp.height];

    end = 0;
    j = 0;
    if (time < myEndTime){ t = time; }else{ t = myEndTime + (1 - 1/Math.exp(time - myEndTime))/decay; } while ( t >= end){
    j += 1;
    seedRandom(j,true);
    start = end;
    end += random(segMin,segMax);
    }
    endVal = random(minVal,maxVal);
    seedRandom(j-1,true);
    dummy=random();
    startVal = random(minVal,maxVal);
    ease(t,start,end,startVal,endVal);

    The layers don’t completely stop, but it might be close enough.

    Dan

  • Shirak Agresta

    March 21, 2006 at 11:19 am

    Thank you, thank you, thank you! Did I say thank you?

    Appreciate it.

    Julius Caesar and the Roman Empire couldn’t conquer the blue sky.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy