Forum Replies Created

Page 1032 of 1081
  • Dan Ebberts

    March 17, 2006 at 8:35 am in reply to: 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

  • Dan Ebberts

    March 17, 2006 at 8:35 am in reply to: 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

  • Dan Ebberts

    March 16, 2006 at 9:26 pm in reply to: Expression duration help, please!

    If you just want it to stop where it is at a particular time, I think I’d do it this way:

    myEndTime = 4;

    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; 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);

    Just set myEndTime to the time you want it to stop.

    Dan

  • Dan Ebberts

    March 16, 2006 at 9:26 pm in reply to: Expression duration help, please!

    If you just want it to stop where it is at a particular time, I think I’d do it this way:

    myEndTime = 4;

    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; 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);

    Just set myEndTime to the time you want it to stop.

    Dan

  • No, unfortunately there’s no way for a precomp to find out what comp it’s nested in. It makes sense if you think about it – since a pre-comp can be dropped into any number of comps the concept of a “parent” doesn’t really work.

    I’m not sure if this would work in your situation, but you could have the precomp build the name of its parent comp based on its own name like this:

    myParentCompName = “Master” + thisComp.name.substr(-2);

    So if you had Subcomp01 nested in Master01, it would calculate the name of the master. Then when you duplicate the master and the subcomp, AE will name them Subcomp02 and Master02 and the expression should still work. Something like that is probably the best you can do unless you write a script to do the whole thing for you.

    Dan

  • No, unfortunately there’s no way for a precomp to find out what comp it’s nested in. It makes sense if you think about it – since a pre-comp can be dropped into any number of comps the concept of a “parent” doesn’t really work.

    I’m not sure if this would work in your situation, but you could have the precomp build the name of its parent comp based on its own name like this:

    myParentCompName = “Master” + thisComp.name.substr(-2);

    So if you had Subcomp01 nested in Master01, it would calculate the name of the master. Then when you duplicate the master and the subcomp, AE will name them Subcomp02 and Master02 and the expression should still work. Something like that is probably the best you can do unless you write a script to do the whole thing for you.

    Dan

  • Dan Ebberts

    March 16, 2006 at 4:35 pm in reply to: image softness on Y position

    Must be interlaced footage. If you move intlaced footage up or down an odd number of pixels, you’ll just get AE’s interpolated pixels, which will be softer.

    Dan

  • Dan Ebberts

    March 16, 2006 at 2:17 pm in reply to: Expression duration help, please!

    Say you want the expression to only be in effect for 4 seconds. I’d just change the last line of your expression to:

    result = (whatever your final result was before);
    if (time > 4) result else value

    That will give you your keyframed value after the 4 seconds.

    Dan

  • Dan Ebberts

    March 16, 2006 at 2:17 pm in reply to: Expression duration help, please!

    Say you want the expression to only be in effect for 4 seconds. I’d just change the last line of your expression to:

    result = (whatever your final result was before);
    if (time > 4) result else value

    That will give you your keyframed value after the 4 seconds.

    Dan

  • Dan Ebberts

    March 14, 2006 at 12:59 am in reply to: Expression for Digital Clock

    It sounds like you might just need something like this expression applied to the source text of a text layer:

    t = linear(time,0,2,30,43.14);
    str = “” + Math.round(t*100);
    str.substr(0,str.length-2) + “.” + str.substr(-2)

    Dan

Page 1032 of 1081

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