Forum Replies Created

Page 31 of 1081
  • Dan Ebberts

    February 19, 2024 at 11:38 pm in reply to: 360º incremental layer rotation with pauses

    This is just a rough stab at it, without actually seeing what you’re doing, but I think it’s going to look something like this:

    r = thisComp.layer("r_control").transform.rotation;
    val = 0;
    if (time >= r.key(2).time){
    n = Math.floor((time - r.key(2).time)/(r.key(4).time - r.key(2).time));
    t = (time - r.key(2).time)%(r.key(4).time - r.key(2).time);
    val = r.key(4).value*n + r.valueAtTime(t + r.key(2).time);
    }
    val
  • Dan Ebberts

    February 19, 2024 at 4:11 pm in reply to: Animating between two positions with start and end time

    There are a number of ways to set it up. This would probably be the most straightforward, brute-force method for the task as you’ve described it:

    A = [0,0];
    B = [500,200];
    C = [1000,1000];
    t1 = 0;
    t2 = 2;
    t3 = 4;
    t4 = 6;
    if (time < t3)
    linear(time,t1,t2,A,B)
    else
    linear(time,t3,t4,B,C)
  • Dan Ebberts

    February 13, 2024 at 6:05 pm in reply to: AE scripting: using the colorpicker

    I’m on Win 11, so it’s hard to say…

  • Dan Ebberts

    February 13, 2024 at 5:51 pm in reply to: AE scripting: using the colorpicker

    I just tried it with this, and it seems to work:

    var myColorPicker = $.colorPicker();
    alert(myColorPicker.toString(16));
  • Dan Ebberts

    February 13, 2024 at 4:58 pm in reply to: AE scripting: using the colorpicker

    It seems to work for me. Do you have a specific example?

  • Dan Ebberts

    February 7, 2024 at 7:13 pm in reply to: Delay Point path animation

    You could try a path expression like this:

    delay = .1;
    p0 = points(time);
    iT0 = inTangents(time);
    oT0 = outTangents(time);
    for (i = 0; i < p0.length; i++){
    p = points(time - i*delay);
    p0[i] = p[i];
    iT = inTangents(time - i*delay);
    iT0[i] = iT[i];
    oT = outTangents(time - i*delay);
    oT0[i] = oT[i];
    }
    createPath(p0,iT0,oT0,isClosed())
  • This should be close, I think:

    sum = 0;
    for (i = index+1; i <= thisComp.numLayers; i += 2){
    sum += thisComp.layer(i).effect("ADBE Slider Control")("ADBE Slider Control-0001");
    }
    sum + " %"
  • Dan Ebberts

    February 3, 2024 at 11:03 pm in reply to: Expression that can read the framerate of a nested comp.

    You could try something like this:

    (1/input.source.frameDuration).toFixed(2) + " fps"
  • Dan Ebberts

    February 1, 2024 at 1:53 am in reply to: Toggle comp set up from one state to another state.

    I think it would have to be done with a script, because expressions can’t toggle layer visibility or turn effects on and off (although I guess you could use expressions to control layer opacity and effect opacity in the effect’s compositing options). I’m guessing the script would need to be tailored to your specific workflow, but it sounds do-able (although I’m not familiar with CD4 “takes” so I’m not 100% sure).

  • Dan Ebberts

    January 31, 2024 at 6:09 pm in reply to: .csv words cycle in After Effects

    Try the expression I posted and see how it goes.

Page 31 of 1081

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