Forum Replies Created

Page 61 of 1081
  • Dan Ebberts

    January 8, 2023 at 1:13 am in reply to: Question about creating a script for AE

    I just tried it and had no real luck with the background color. If I use a fill brush of the desired color, I can get a colored box around the text entry area, but that the closest I can get. Maybe somebody with more experience in this area will chime in…

  • Dan Ebberts

    January 5, 2023 at 9:41 pm in reply to: Continued motion expression error

    Does this do the same thing?

    if (numKeys > 0)
    loopOut("continue")
    else
    value
  • Dan Ebberts

    January 5, 2023 at 9:25 pm in reply to: Continued motion expression error

    I think you might just need to rearrange it a little to make the JavaScript engine happy:

    nk=numKeys;
    if ((nk>1) && (key(nk).time<time)) {
    startT=key(nk).time;
    deltaT=thisComp.frameDuration;
    deltaV=key(nk).value - valueAtTime(startT-deltaT);
    key(nk).value + deltaV*(time-startT)/deltaT;
    }else
    value
  • Dan Ebberts

    January 5, 2023 at 9:13 pm in reply to: After Effects expression make wiggle smoother

    To start with, you might want to reduce the frequency parameter, maybe like this:

    w = wiggle(5,30);
    x = value[0];
    y = w[1];
    [x,y]
  • It’s hard to picture what you’re describing. Can you maybe post some screenshots?

  • Something more like this maybe:

    moveMin = 0.5; // minimum move time (initial wind gust)
    moveMax = 1; // maximum move time
    moveBackMin = 1.5; // minimum move time to return to zero (slower than the initial gust)
    moveBackMax = 2; // maximum move time to return to zero
    pauseMin = 1; // minimum pause time
    pauseMax = 2; // maximum pause time
    minVal = 20; // minimum move amount <-
    maxVal = 40; // maximum move amount ->
    seedRandom(index,true);
    initialDelay = random(pauseMin,pauseMax);
    move = moveBack = val = 0;
    seed = 1001;
    t = tPrev = inPoint+initialDelay;
    while (t <= time){
    seedRandom(seed,true);
    val = random(minVal,maxVal);
    move = random(moveMin,moveMax);
    moveBack = random(moveBackMin,moveBackMax);
    pause = random(pauseMin,pauseMax);
    tPrev = t;
    t += move+moveBack+pause;
    seed++;
    }
    d = time - tPrev;
    if (d < move)
    ease(d,0,move,0,val)
    else if (d < (move + moveBack))
    ease(d,move,move+moveBack,val,0)
    else
    0
  • This might be helpful (the section on time remapping):

    http://www.motionscript.com/articles/speed-control.html#other-applications

  • Dan Ebberts

    January 4, 2023 at 11:52 pm in reply to: Question about creating a script for AE

    To do that, I think you need to use the ScriptUIGraphics object to define a brush and apply it to the control’s background color. The Adobe JavaScript Tools Guide has some good info and examples. Search for “backgroundColor”.

  • Dan Ebberts

    January 4, 2023 at 9:13 pm in reply to: Control 2nd keyframe with slider

    Try it this way:

    t1 = key(1).time;
    t2 = key(2).time;
    t3 = key(3).time;
    t4 = key(4).time;
    v1 = key(1).value;
    v2 = thisComp.layer("control").effect("Slider Control")("Slider");
    v3 = thisComp.layer("control").effect("Slider Control")("Slider");
    v4 = key(4).value;
    if (time < t3)
    ease(time,t1,t2,v1,v2)
    else
    ease(time,t3,t4,v3,v4)
  • Dan Ebberts

    January 4, 2023 at 8:03 pm in reply to: Control 2nd keyframe with slider

    So, for the linear keyframe case it could look like this:

    t1 = key(1).time;
    t2 = key(2).time;
    v1 = key(1).value;
    v2 = thisComp.layer("Null 1").effect("Slider Control")("Slider");
    linear(time,t1,t2,v1,v2)

    Or, you might want to change the last line to this:

    easeOut(time,t1,t2,v1,v2)

    Hopefully, that gives you the idea.

Page 61 of 1081

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